# HG changeset patch # User Oleksandr Gavenko # Date 1389705226 -7200 # Node ID 8c21afb3d2b6758196640120ff85e1cecfda4690 # Parent c2b825bf035370fc936feb2608a48fef7e85d2c4 Don't bind in noninteractive mode to prevent from printing warnings: bind: warning: line editing not enabled when used in "hg push ssh://..." diff -r c2b825bf0353 -r 8c21afb3d2b6 .bashrc --- a/.bashrc Tue Jan 14 15:12:29 2014 +0200 +++ b/.bashrc Tue Jan 14 15:13:46 2014 +0200 @@ -142,8 +142,10 @@ set -o emacs -bind '"\e/": dabbrev-expand' -bind '"\ee": edit-and-execute-command' +if [[ $- == *i* ]]; then + bind '"\e/": dabbrev-expand' + bind '"\ee": edit-and-execute-command' +fi ################################################################ # Completion.