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 #-------------------------------------------------------------------------------- #--------------------------------------------------------------------------------