Skip to content

Commit 3b3e8e0

Browse files
committed
Fix bug
bash: test: -oq: binary operator expected
1 parent ef91bd8 commit 3b3e8e0

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

.bashrc

+5-7
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,11 @@ test -f ~/.bash_private.gpg && \
1717
# enable programmable completion features (you don't need to enable
1818
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
1919
# sources /etc/bash.bashrc).
20-
test ! shopt -oq posix && {
21-
test -f /usr/share/bash-completion/bash_completion && . /usr/share/bash-completion/bash_completion
22-
test -f /etc/bash_completion && . /etc/bash_completion
23-
# smart advanced completion, download from
24-
# http://bash-completion.alioth.debian.org/
25-
test -f ~/local/bin/bash_completion && . ~/local/bin/bash_completion
26-
}
20+
test -f /usr/share/bash-completion/bash_completion && . /usr/share/bash-completion/bash_completion
21+
test -f /etc/bash_completion && . /etc/bash_completion
22+
# smart advanced completion, download from
23+
# http://bash-completion.alioth.debian.org/
24+
test -f ~/local/bin/bash_completion && . ~/local/bin/bash_completion
2725

2826
# http://unix.stackexchange.com/questions/72086/ctrl-s-hang-terminal-emulator
2927
# See "The TTY demystified" - http://linusakesson.net/programming/tty/index.php

0 commit comments

Comments
 (0)