X-Git-Url: http://gitweb.pimeys.fr/?a=blobdiff_plain;f=.bashrc;h=c5e734700f60bcc4542681ea02c9df9489ec6405;hb=e9bc39cc120c43adbd6e181427e765280a476f0b;hp=4e594afa0c1b8e43f16e9f9e3ecdbbe1f3688847;hpb=d69491f850d4620875a577e6cc8f409500f2188a;p=config-20-100.git 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