add usage of powerline-go, needs to be installed from 'o get -u github.com/justjanne/powerline-go'
This commit is contained in:
parent
35996b6d6f
commit
e1fe075a8b
12
.bashrc
12
.bashrc
@ -120,6 +120,16 @@ EDITOR=/usr/bin/vim.basic
|
|||||||
PAGER="less"
|
PAGER="less"
|
||||||
LESS="-S"
|
LESS="-S"
|
||||||
export IPTOKEN="6ac0a563fc06ab"
|
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"
|
export NVM_DIR="/home/pt/.nvm"
|
||||||
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads 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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user