Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revisionLast revisionBoth sides next revision | ||
prompt [2017/08/30 09:33] – [On Mac] rike | prompt [2017/09/01 14:28] – [On Linux] Zbigniew Jedrzejewski-Szmek | ||
---|---|---|---|
Line 7: | Line 7: | ||
<code bash> | <code bash> | ||
for candidate in / | for candidate in / | ||
+ | # This path might need to be adjusted ^^^ | ||
! type __git_ps1 &>/ | ! type __git_ps1 &>/ | ||
done | done | ||
Line 24: | Line 25: | ||
Edit `~/ | Edit `~/ | ||
- | | + | <code bash> |
- | | + | if [ -f $(brew --prefix)/ |
- | fi | + | |
- | + | fi | |
- | export GIT_PS1_SHOWDIRTYSTATE=1 | + | |
- | export GIT_PS1_SHOWSTASHSTATE=1 | + | export GIT_PS1_SHOWDIRTYSTATE=1 |
- | export GIT_PS1_SHOWUNTRACKEDFILES=1 | + | export GIT_PS1_SHOWSTASHSTATE=1 |
- | # export GIT_PS1_SHOWUPSTREAM=verbose | + | export GIT_PS1_SHOWUNTRACKEDFILES=1 |
- | # export GIT_PS1_DESCRIBE_STYLE=branch | + | # export GIT_PS1_SHOWUPSTREAM=verbose |
- | export PROMPT_COMMAND=' | + | # export GIT_PS1_DESCRIBE_STYLE=branch |
- | export GIT_PS1_SHOWCOLORHINTS=1 | + | export PROMPT_COMMAND=' |
- | + | export GIT_PS1_SHOWCOLORHINTS=1 | |
+ | </ | ||
(Works only with the homebrew version of git.) | (Works only with the homebrew version of git.) | ||
+ | |||
+ | ==== Missing '' | ||
+ | |||
+ | Under both Linux and Mac, if you cannot find '' | ||
+ | https:// | ||
+ | save it anywhere in the home directory, and put the path to it in the line annotated with "This path might need to be adjusted" |