X-Git-Url: http://gitweb.pimeys.fr/?a=blobdiff_plain;f=.bashrc;h=77b0a2df1249511f1e103c923cc166f7bc396157;hb=0d7cdec3322c6529d5eb72cff52baa1bbf5ad7d3;hp=3d1c3d27d6f3f2416db77df48fd206b738bf0be0;hpb=fb1b3540ff05cfd4b5a23522054b7a8715e8e0a4;p=config-20-100.git diff --git a/.bashrc b/.bashrc index 3d1c3d2..77b0a2d 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 } @@ -332,6 +337,17 @@ export EDITOR='/usr/bin/nano' # 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 += "" +export GIT_AUTHOR_NAME=$(git config user.name) +export GIT_AUTHOR_EMAIL=$(git config user.email) + +# +----------+ +# | Sourcing | +# +----------+ + # Chargement des alias if [ -f ~/.bash_aliases ]; then . ~/.bash_aliases @@ -344,6 +360,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 +# locale a pu changer des couleurs welcome_message