mirror of
https://github.com/lloeki/dotfiles.git
synced 2025-12-06 07:24:39 +01:00
fix which message when brew missing (linux)
This commit is contained in:
parent
a0b8051a6a
commit
077c340ed8
1 changed files with 1 additions and 1 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
# default bash autocompletion
|
# default bash autocompletion
|
||||||
bash_completion_file="/etc/bash_completion"
|
bash_completion_file="/etc/bash_completion"
|
||||||
if which brew >/dev/null; then
|
if which brew 2>/dev/null >/dev/null; then
|
||||||
bash_completion_file="`brew --prefix`$bash_completion_file"
|
bash_completion_file="`brew --prefix`$bash_completion_file"
|
||||||
fi
|
fi
|
||||||
[[ -f $bash_completion_file ]] || unset bash_completion_file
|
[[ -f $bash_completion_file ]] || unset bash_completion_file
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue