.bashrc: bind only in interactive mode

This commit is contained in:
2016-01-04 20:33:52 +01:00
parent ecb320211b
commit 34d082ea60
+2 -3
View File
@@ -20,9 +20,6 @@ shopt -s checkwinsize
# make less more friendly for non-text input files, see lesspipe(1)
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
bind 'set show-all-if-ambiguous on'
bind 'TAB:menu-complete'
##
## prompt games
##
@@ -272,6 +269,8 @@ fi
case $- in
*i*)
bind 'set show-all-if-ambiguous on'
bind 'TAB:menu-complete'
# only with interactive non-sudo shell
if [ -n "$SSH_CONNECTION" ] && [ -z "$SUDO_UID" ]; then
[ "$(parent)" = "screen" ] || screen -RR