Move the bash interactive shell check to before the setting of $PS1.
This commit is contained in:
parent
0c2ced2fcb
commit
6a01d5e0f1
16
.bashrc
16
.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
|
||||
#--------------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in a new issue