comparison zshrc @ 1:e12c50e8ea8c

use the builtin HOST variable
author Dirk Olmes <dirk@xanthippe.ping.de>
date Mon, 28 Nov 2011 12:38:54 +0100
parents 8b245298349a
children d31291a406ed
comparison
equal deleted inserted replaced
0:8b245298349a 1:e12c50e8ea8c
42 if [ -f ${os_zshrc} ]; then 42 if [ -f ${os_zshrc} ]; then
43 . ${os_zshrc} 43 . ${os_zshrc}
44 fi 44 fi
45 45
46 # include a zshrc per host 46 # include a zshrc per host
47 local hostname=`uname -n` 47 local host_zshrc=$HOME/.zsh-env/zshrc-${HOST}
48 local host_zshrc=$HOME/.zsh-env/zshrc-${hostname}
49 if [ -r ${host_zshrc} ]; then 48 if [ -r ${host_zshrc} ]; then
50 . ${host_zshrc} 49 . ${host_zshrc}
51 fi 50 fi