X-Git-Url: http://gitweb.pimeys.fr/?a=blobdiff_plain;f=.bashrc;h=b738ade1c1000d0d03bf76ff81761cc2e79d8e22;hb=d23bdca313a1e2d2a6408222b9b79b091dffdb12;hp=c6b727ae154f160eb0eda0e1241b6a54fcd15aad;hpb=6243d890f6518bafc92d0ffe39095892f600ec21;p=config-20-100.git diff --git a/.bashrc b/.bashrc index c6b727a..b738ade 100644 --- a/.bashrc +++ b/.bashrc @@ -98,11 +98,11 @@ get_vcs_info () { # Rien de spécial n'arrivera si vous n'avez pas le fichier .umaskrc function cd { builtin cd "$@" + ret=$? if [ -f ~/.umaskrc ]; then umask $(/usr/bin/awk 'BEGIN {pwd=ENVIRON["PWD"]; a=length(pwd); cmax=0} {if($1==pwd) {MASK=$2;exit}; c=length($1); if(c>a) {next}; if(substr(pwd,0,c)==$1 && c > cmax) {cmax=c; MASK=$2}} END {print MASK}' ~/.umaskrc) >/dev/null - else - return 0 fi + return $ret } ### Attention à ce que vous éditez dans cette section ###