X-Git-Url: http://gitweb.pimeys.fr/?a=blobdiff_plain;f=.bashrc;h=056648669e183a16ef4d5d7c4dd6b50afc5c5cc4;hb=2f8ffc274b765dcc8d1968745a6a412001ab3fcc;hp=f328f7e8e582c7ec4c282cff05a9fdb43c686621;hpb=5c3e457088a249d29b50940bc8fcc5b61bd72e90;p=config-20-100.git diff --git a/.bashrc b/.bashrc index f328f7e..0566486 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