From 6a01d5e0f106a907c36038a77780a8c236cdeee0 Mon Sep 17 00:00:00 2001 From: Scott Wallace <scott@wallace.sh> Date: Tue, 26 Jan 2016 20:12:31 +0000 Subject: [PATCH] Move the bash interactive shell check to before the setting of $PS1. --- .bashrc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.bashrc b/.bashrc index 2e0c238..5358a8f 100644 --- a/.bashrc +++ b/.bashrc @@ -29,6 +29,14 @@ if [ -s "${COREUTILS}" ]; then fi #-------------------------------------------------------------------------------- +#-------------------------------------------------------------------------------- +# Rebind CTRL-T to search forward in history +#-------------------------------------------------------------------------------- +if [ -n "$PS1" ]; then + bind "\C-t":forward-search-history +fi +#-------------------------------------------------------------------------------- + #-------------------------------------------------------------------------------- # A useful prompt #-------------------------------------------------------------------------------- @@ -74,14 +82,6 @@ alias gitx='open -a GitX .' export GOPATH=${HOME}/src/go #-------------------------------------------------------------------------------- -#-------------------------------------------------------------------------------- -# Rebind CTRL-T to search forward in history -#-------------------------------------------------------------------------------- -if [ -n "$PS1" ]; then - bind "\C-t":forward-search-history -fi -#-------------------------------------------------------------------------------- - #-------------------------------------------------------------------------------- # Add bash completion scripts #--------------------------------------------------------------------------------