summaryrefslogtreecommitdiff
path: root/.zshrc
diff options
context:
space:
mode:
authorhugues <hugues@a0e5b806-a6f9-0310-978d-cbce73f8a913>2006-04-04 20:23:33 +0000
committerHugues Hiegel <hugues@hiegel.fr>2008-03-07 14:15:07 +0100
commit79f21e0c29b45930706516d72fa273786153b11a (patch)
treed9ea398f0eb96da838490581b2071dff9ab4feb5 /.zshrc
parent92f57333031fc34dadcba3e9817168ac9173c739 (diff)
Mises à jour diverses : sudo, keychain
git-svn-id: svn+ssh://hugues@maison/opt/svn/private/hugues@223 a0e5b806-a6f9-0310-978d-cbce73f8a913
Diffstat (limited to '.zshrc')
-rw-r--r--.zshrc13
1 files changed, 3 insertions, 10 deletions
diff --git a/.zshrc b/.zshrc
index 3868a76..936dfc3 100644
--- a/.zshrc
+++ b/.zshrc
@@ -5,21 +5,14 @@ if [ -d $ZDOTDIR ]; then
do
source $script
local_script="${script:r}.`hostname -s`"
-
- if ( [ -f $local_script ] )
- then
- source $local_script
- fi
+ [ -f $local_script ] && source $local_script
done
fi
if [ "`whoami`" = "root" ]
then
- if [ "`pwd`" = ~ ]
- then
- cd ~root
- fi
+ [ "`pwd`" = ~ ] && cd ~root
export HOME=~root
+ HISTFILE=$HISTFILE.root
fi
-#cd ~