From 34d082ea608046f86a2c2d5ab2992c050cf16592 Mon Sep 17 00:00:00 2001 From: Artem Sheremet Date: Mon, 4 Jan 2016 20:33:52 +0100 Subject: [PATCH] .bashrc: bind only in interactive mode --- .bashrc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.bashrc b/.bashrc index 7461d8f..6cd3642 100644 --- a/.bashrc +++ b/.bashrc @@ -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