git-prompt.sh 1.4 KB

123456789101112131415161718192021222324
  1. # Settings info at https://github.com/magicmonty/bash-git-prompt
  2. if [ -f "$HOME/.bash-git-prompt/gitprompt.sh" ]; then
  3. # Set config variables first
  4. GIT_PROMPT_ONLY_IN_REPO=1
  5. GIT_PROMPT_FETCH_REMOTE_STATUS=0 # uncomment to avoid fetching remote status
  6. GIT_PROMPT_IGNORE_SUBMODULES=1 # uncomment to avoid searching for changed files in submodules
  7. # GIT_PROMPT_WITH_VIRTUAL_ENV=0 # uncomment to avoid setting virtual environment infos for node/python/conda environments
  8. # GIT_PROMPT_SHOW_UPSTREAM=1 # uncomment to show upstream tracking branch
  9. # GIT_PROMPT_SHOW_UNTRACKED_FILES=normal # can be no, normal or all; determines counting of untracked files
  10. # GIT_PROMPT_SHOW_CHANGED_FILES_COUNT=0 # uncomment to avoid printing the number of changed files
  11. # GIT_PROMPT_STATUS_COMMAND=gitstatus_pre-1.7.10.sh # uncomment to support Git older than 1.7.10
  12. # GIT_PROMPT_START=... # uncomment for custom prompt start sequence
  13. # GIT_PROMPT_END=... # uncomment for custom prompt end sequence
  14. # as last entry source the gitprompt script
  15. # GIT_PROMPT_THEME=Custom # use custom theme specified in file GIT_PROMPT_THEME_FILE (default ~/.git-prompt-colors.sh)
  16. # GIT_PROMPT_THEME_FILE=~/.git-prompt-colors.sh
  17. # GIT_PROMPT_THEME=Solarized # use theme optimized for solarized color scheme
  18. source $HOME/.bash-git-prompt/gitprompt.sh
  19. fi