Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Maxime Bombar
Config_Files
Commits
153fa2cd
Commit
153fa2cd
authored
Feb 20, 2015
by
Pierre-Elliott Bécue
Browse files
which retourne une erreur si la commande n'existe pas. On l'envoit dans dev/null
parent
d69491f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
.bashrc
View file @
153fa2cd
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment