Mercurial > hg > zsh-env
comparison zshrc @ 7:4263bbc594fe
re-declare $HOST to be hostname only
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Wed, 30 Nov 2011 10:05:36 +0100 |
parents | d31291a406ed |
children | db85a076d8ae |
comparison
equal
deleted
inserted
replaced
5:2cd74a85976a | 7:4263bbc594fe |
---|---|
39 fi | 39 fi |
40 done | 40 done |
41 echo "${clean_path}" | 41 echo "${clean_path}" |
42 } | 42 } |
43 | 43 |
44 # $HOST can either be just the host name or the FQDN. Standardize on the raw host name | |
45 export HOST=`echo $HOST | awk -F '.' '{ print $1 }'` | |
46 | |
44 # include a zshrc per OS type | 47 # include a zshrc per OS type |
45 local os_zshrc=$HOME/.zsh-env/zshrc-$OSTYPE | 48 local os_zshrc=$HOME/.zsh-env/zshrc-$OSTYPE |
46 if [ -f ${os_zshrc} ]; then | 49 if [ -f ${os_zshrc} ]; then |
47 . ${os_zshrc} | 50 . ${os_zshrc} |
48 fi | 51 fi |