![]() Subl ~/.git-prompt-colors.sh to open git-prompt-colors. Git_prompt_make_custom_theme to create a new custom theme, this should create a. Git_prompt_color_samples to see available colors. Git_prompt_list_themes to see the themes but I didn't like any of them. I used the option via Homebrew on Mac OS X. You can customize the colors with this listĪnother option is to use Git Bash Prompt, install with this. We wanted our CLI tools to be more discoverable. My co-founder Matt and I built Fig because of our own struggles in the terminal: we were tired of context switching between man pages, Stack Overflow posts, and Medium tutorials anytime we got stuck. This should: 1) Prompt the path you're in, in color: path_color.ģ) Color the name of the branch based on the status of the branch with git_clean_colorįor a clean work directory and git_dirty_color for a dirty one.Ĥ) The brackets should stay in the default color you established in your computer.ĥ) Puts the prompt in the next line for readability. Fig adds IDE-style autocomplete to your existing terminal (zsh, iTerm, etc.). # PS1 is made from $PreGitPS1 + + $PostGitPS1 Local exit="$?" # Save the exit status of the last command Unset _colourise_prompt & _colour_enabled & _colourise_prompt=1 Local -i colors=$(tput colors 2>/dev/null) # describe relative to older annotated tag (v1.6.3.1-13-gdd42c2f) # branch relative to newer tag or branch (master~4) # contains relative to newer annotated tag (v1.6.3.2~35) ![]() # Select git info displayed, see /usr/share/git/completion/git-prompt.sh for moreĮxport GIT_PS1_SHOWDIRTYSTATE=1 # '*'=unstaged, '+'=stagedĮxport GIT_PS1_SHOWSTASHSTATE=1 # '$'=stashedĮxport GIT_PS1_SHOWUNTRACKEDFILES=1 # '%'=untrackedĮxport GIT_PS1_SHOWUPSTREAM="verbose" # 'u='=no difference, 'u+1'=ahead by 1 commitĮxport GIT_PS1_STATESEPARATOR='' # No space between branch and index statusĮxport GIT_PS1_DESCRIBE_STYLE="describe" # detached HEAD style: ![]() To do this, add the following to your ~/.bashrc: #
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |