From 631a23fd289f69ca733bd14ce65ff1dba1322dc4 Mon Sep 17 00:00:00 2001 From: Scott Wallace Date: Tue, 26 Jan 2016 16:00:53 +0000 Subject: [PATCH] Ensure bind commands are only performed in interactive shells. --- .bashrc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.bashrc b/.bashrc index 8d410ee..31f267c 100644 --- a/.bashrc +++ b/.bashrc @@ -77,7 +77,9 @@ export GOPATH=${HOME}/src/go #-------------------------------------------------------------------------------- # Rebind CTRL-T to search forward in history #-------------------------------------------------------------------------------- -bind "\C-t":forward-search-history +if [ -n "$PS1" ]; then + bind "\C-t":forward-search-history +fi #-------------------------------------------------------------------------------- #--------------------------------------------------------------------------------