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