summaryrefslogtreecommitdiff
path: root/etc/profile
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-03-01 20:39:05 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2009-03-01 20:39:05 +0100
commita73d678b08d26a2755759c74c594238d111cd8b1 (patch)
treee9a6fb22c25b6966b34af8f05f019e7abc15b61d /etc/profile
parent1b6e4bfad74093f1f22d8ad0889490b3d7ef7e6c (diff)
profile: Take a bit more space, and print operating system
Diffstat (limited to 'etc/profile')
-rw-r--r--etc/profile16
1 files changed, 14 insertions, 2 deletions
diff --git a/etc/profile b/etc/profile
index 818d7f9..44ec38a 100644
--- a/etc/profile
+++ b/etc/profile
@@ -1,5 +1,17 @@
## vim:ft=zsh
source $HOME/packages/zsh/etc/colors
-print -P "${info}>>${reset} this is ${info}$(uname -srm)${reset} on ${info}%y${reset}"
-[[ -n $(echo Maildir/new/*(N)) ]] && echo "${info}>>${reset} You have mail!"
+
+function pr_info {
+ print -P "${info}>>${reset} $*"
+}
+
+echo
+pr_info "This is ${info}$(uname -srm)${reset} on ${info}%y${reset}"
+[[ -r /etc/gentoo-release ]] && pr_info "Running ${info}Gentoo${reset}"
+[[ -r /etc/debian_version ]] && pr_info "Running ${info}Debian${reset} $(cat /etc/debian_version)"
+echo
+
+[[ -n $(echo Maildir/new/*(N)) ]] && pr_info "You have mail!"
[[ -r $HOME/packages/zsh/etc/local-profile ]] && source $HOME/packages/zsh/etc/local-profile
+
+unfunction pr_info