Skip to content

dardsminds/Git-Custom-Shell-Prompt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Customize your Mac terminal to show git branch name on the prompt

download .git-prompt.sh file on your home folder and copy and these at end of your existing .zshrc file

source ~/.git-prompt.sh

setopt PROMPT_SUBST ; PS1='%n@%m %~%F{010}$(__git_ps1 " (%s)")%f$ '

About

Always display current branch name on command line prompt This will easily inform you of what is the current active branch you are working on

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages