There was an error in the if statement with a '(' I think that was causing problems with powerline go
This commit is contained in:
Russell R. 2020-11-23 18:10:42 -05:00
parent a5b7b63dd0
commit 1d7319c5db
1 changed files with 12 additions and 10 deletions

22
.bashrc
View File

@ -59,9 +59,9 @@ if [ -n "$force_color_prompt" ]; then
# We have color support; assume it's compliant with Ecma-48
# (ISO/IEC-6429). (Lack of such support is extremely rare, and such
# a case would tend to support setf rather than setaf.)
color_prompt=yes
color_prompt=yes
else
color_prompt=
color_prompt=
fi
fi
@ -117,14 +117,6 @@ if ! shopt -oq posix; then
fi
fi
# Use the Powerline_go prompt system
function _update_ps1() {
PS1="$($GOPATH/bin/powerline-go -condensed -error $?)"
}
if [ "$TERM" != "linux" ] && [ -f "$GOPATH/bin/powerline-go" ]; then
PROMPT_COMMAND="_update_ps1; $PROMPT_COMMAND"
fi
# TODO Fix this
# create a shortcut to my windows home folder
#export $WINHOME=/mnt/c/Users/Russ\ Riker/
@ -162,5 +154,15 @@ lolcat ~/mydocs/ascii-art/$BANNERFILE
/usr/bin/keychain --nogui $HOME/.ssh/id_rsa
source $HOME/.keychain/$HOSTNAME-sh
# Use the Powerline_go prompt system
function _update_ps1() {
PS1="$($GOPATH/bin/powerline-go -condensed -error $?)"
}
if [ "$TERM" != "linux" ] && [ -f "$GOPATH/bin/powerline-go" ]; then
PROMPT_COMMAND="_update_ps1; $PROMPT_COMMAND"
fi
# cd to my wsl2 home folder
cd ~