Skip to content

Instantly share code, notes, and snippets.

@prxg22
Last active November 5, 2019 18:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save prxg22/3772a7076904bde880e7fa174081ffff to your computer and use it in GitHub Desktop.
Save prxg22/3772a7076904bde880e7fa174081ffff to your computer and use it in GitHub Desktop.
# NVM
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
# GIT
git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
export PS1="\[\033[0;49;96m\]\u\[\033[0m\]@\w \[\033[38;5;48m\]\$(git_branch)\[\033[00m\] \$ "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment