X-Git-Url: http://gitweb.pimeys.fr/?p=config-20-100.git;a=blobdiff_plain;f=.bashrc;h=c5e734700f60bcc4542681ea02c9df9489ec6405;hp=4e594afa0c1b8e43f16e9f9e3ecdbbe1f3688847;hb=760346882ebd26fcfc4192bebb1c8adf5f6221b8;hpb=d69491f850d4620875a577e6cc8f409500f2188a diff --git a/.bashrc b/.bashrc index 4e594af..c5e7347 100644 --- a/.bashrc +++ b/.bashrc @@ -400,7 +400,7 @@ vcs_info(){ if [[ disabled[${vcss[$i]}] -eq 1 ]]; then continue fi - commands[${vcss[$i]}]=$(which ${vcss[$i]}); + commands[${vcss[$i]}]=$( (which ${vcss[$i]} 2>/dev/null >&2 && which ${vcss[i]})||echo true); done; found=0