Skip to content

Instantly share code, notes, and snippets.

@rhaseven7h
Created July 28, 2016 08:23
Show Gist options
  • Save rhaseven7h/d9ba2719e8c49e2e80b67850f315cde2 to your computer and use it in GitHub Desktop.
Save rhaseven7h/d9ba2719e8c49e2e80b67850f315cde2 to your computer and use it in GitHub Desktop.
PS1 Setup with nvm and git branch
export PS1="┏ \[$(tput bold)\]\[$(tput setaf 2)\]\u\[$(tput setaf 7)\]\[$(tput bold)\]@\[$(tput setaf 6)\]\H \[$(tput setaf 3)\][\w]\[$(tput sgr0)\]\n┃ \[$(tput bold)\]\[$(tput setaf 7)\]\d :: \t :: nvm=\$(nvm current) :: branch=\$(git rev-parse --abbrev-ref HEAD 2>/dev/null || echo not-a-git-repo) :: Cmd #\!\[$(tput sgr0)\] \n┗ \[$(tput bold)\]\[$(tput setaf 3)\]\\$ \[$(tput sgr0)\]\[$(tput sgr0)\]"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment