Skip to main content
  1. 2022/
  2. July/

Adding Git Prompt Enahancement

Who doesn’t like a lil bit o git info in their prompt? #

clone the git prompt repo #

git clone https://github.com/magicmonty/bash-git-prompt.git ~/.bash-git-prompt --depth=1

Edit your .bashrc #

GIT_PROMPT_THEME=Single_line_Dark;setGitPrompt

Bonus! Iterate through git themes #

Tip

Markdown content

for th in `git_prompt_list_themes 2>&1`; do echo "this is $th";  GIT_PROMPT_THEME=$th; setGitPrompt ; echo "${PS1@P}" ;  done;