X-Git-Url: http://gitweb.pimeys.fr/?a=blobdiff_plain;f=.bashrc;h=1a60625f363e07a7258373082d34d6824846d2e6;hb=48944ca7ef3b7eebae4ea7dccfeecef225d156e9;hp=d89108c3c8b8c6042a8213f5464c1a788ad02864;hpb=59d7e4df6dc413d89346050a0cc8da0ef8cfd16b;p=config-20-100.git diff --git a/.bashrc b/.bashrc index d89108c..1a60625 100644 --- a/.bashrc +++ b/.bashrc @@ -45,12 +45,17 @@ fi # des infos quand on est dans un dépôt versionné find_up () { + local path normalized_path normalized_ret path="$1" shift 1 - while [[ "`readlink -f -- \"$path\"`" != "/" ]]; + normalized_path=`readlink -f -- "$path"` + normalized_ret=$? + while [[ "$normalized_path" != "/" ]] && [ $normalized_ret -eq 0 ]; do find "$path" -maxdepth 1 -mindepth 1 "$@" path=${path}/.. + normalized_path=`readlink -f -- "$path"` + normalized_ret=$? done } @@ -333,6 +338,17 @@ shopt -s histappend # Ajouter ~/bin, /sbin et /usr/sbin à son PATH PATH=~/bin:$PATH:/sbin:/usr/sbin +#~# # Décommentez les lignes suivantes et peuplez-les correctement si +#~# # vous avez besoin de commiter en tant que root *et* que votre +#~# # /etc/sudoers contient bien la directive +#~# # Defaults env_keep += "" +#~# GIT_AUTHOR_NAME=$(git config user.name) +#~# GIT_AUTHOR_EMAIL=$(git config user.email) + +# +----------+ +# | Sourcing | +# +----------+ + # Chargement des alias if [ -f ~/.bash_aliases ]; then . ~/.bash_aliases @@ -345,6 +361,11 @@ if [ -f ~/.bash_aliases_local ]; then . ~/.bash_aliases_local fi + +# +-----+ +# | End | +# +-----+ + # On n'exécute le welcome_message que à ce moment, parce que la customisation # local a pu changer des couleurs welcome_message