.bashrc: bind only in interactive mode
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user