Created
December 2, 2020 10:05
-
-
Save mig82/e8b4aff86b6732f26e22aaab7d410d63 to your computer and use it in GitHub Desktop.
Show current folder and git branch in prompt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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