add usage of powerline-go, needs to be installed from 'o get -u github.com/justjanne/powerline-go'

This commit is contained in:
Paul Trowbridge 2020-06-19 00:20:10 -04:00
parent 35996b6d6f
commit e1fe075a8b

12
.bashrc
View File

@ -120,6 +120,16 @@ EDITOR=/usr/bin/vim.basic
PAGER="less"
LESS="-S"
export IPTOKEN="6ac0a563fc06ab"
export PG="psql -U ptrowbridge -d ubm -p 5030 -h usmidlnx01"
export PG="psql -U ptrowbridge -d ubm -p 5432 -h 192.168.1.110"
export NVM_DIR="/home/pt/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
GOPATH=$HOME/go
function _update_ps1() {
PS1="$($GOPATH/bin/powerline-go -error $?)"
}
if [ "$TERM" != "linux" ] && [ -f "$GOPATH/bin/powerline-go" ]; then
PROMPT_COMMAND="_update_ps1; $PROMPT_COMMAND"
fi