Move the bash interactive shell check to before the setting of $PS1.

This commit is contained in:
Scott Wallace 2016-01-26 20:12:31 +00:00
parent 0c2ced2fcb
commit 6a01d5e0f1

16
.bashrc
View file

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