From 79f21e0c29b45930706516d72fa273786153b11a Mon Sep 17 00:00:00 2001 From: hugues Date: Tue, 4 Apr 2006 20:23:33 +0000 Subject: Mises à jour diverses : sudo, keychain MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn+ssh://hugues@maison/opt/svn/private/hugues@223 a0e5b806-a6f9-0310-978d-cbce73f8a913 --- .zshrc | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to '.zshrc') 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 ~ -- cgit v1.2.3