diff --git a/.bashrc b/.bashrc index 043c099..4fdea88 100644 --- a/.bashrc +++ b/.bashrc @@ -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 +