Skip to content

Instantly share code, notes, and snippets.

@mig82
Created December 2, 2020 10:05
Show Gist options
  • Save mig82/e8b4aff86b6732f26e22aaab7d410d63 to your computer and use it in GitHub Desktop.
Save mig82/e8b4aff86b6732f26e22aaab7d410d63 to your computer and use it in GitHub Desktop.
Show current folder and git branch in prompt
alias gitify_my_prompt="PS1='\[\033[96m\]\W\[\033[95m\] [\$(git symbolic-ref --short HEAD 2>/dev/null)]\[\033[00m\]\$' "
gitify_my_prompt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment