summaryrefslogtreecommitdiff
path: root/etc/.zprofile
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2010-03-28 13:52:49 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2010-03-28 13:52:49 +0200
commit19557bb66d4ccd6ee231dc154a1191c5f4ce2922 (patch)
tree27183114982d7420e5008b2bb7ac04b88b68a7ca /etc/.zprofile
parent8b78a3d6adbcef63e32a840e40be2719d4f5140b (diff)
Let caretaker automatically symlink the stuff
Diffstat (limited to 'etc/.zprofile')
-rw-r--r--etc/.zprofile20
1 files changed, 20 insertions, 0 deletions
diff --git a/etc/.zprofile b/etc/.zprofile
new file mode 100644
index 0000000..ffdd0f1
--- /dev/null
+++ b/etc/.zprofile
@@ -0,0 +1,20 @@
+## vim:ft=zsh
+function pr_info {
+ print -P "%F{cyan}>>%F{default} $*"
+}
+
+echo
+
+pr_info "This is %F{cyan}$(uname -srm)%F{default} on %F{cyan}%y%F{default}"
+[[ -r /etc/gentoo-release ]] && pr_info "Running %F{cyan}Gentoo%F{default} ${$(cat /etc/gentoo-release)#(#i)gentoo }"
+[[ -r /etc/debian_version ]] && pr_info "Running %F{cyan}Debian%F{default} $(cat /etc/debian_version)"
+[[ -r /etc/arch-release ]] && pr_info "Running %F{cyan}Arch%F{default}"
+[[ -r /etc/redhat-release ]] && pr_info "Running %F{cyan}Redhat%F{default}"
+
+echo
+
+[[ -n $(echo Maildir/new/*(N)) ]] && pr_info "You have mail!"
+[[ -r $ZDIR/local-profile ]] && source $ZDIR/local-profile
+[[ -r $ZDIR/hosts/profile-$HOST ]] && source $ZDIR/hosts/profile-$HOST
+
+unfunction pr_info