Skip to content

Commit

Permalink
Use forked version of zsh-git-prompt
Browse files Browse the repository at this point in the history
- main project installed via homebrew appears to not be maintained
- add instructions to clone done fork, which has bug fixes and feature
  to show stash
- create .gitignore to not add zsh-git-prompt repo to source control
- see this issue for more info: olivierverdier/zsh-git-prompt#123
  • Loading branch information
djpowers committed Sep 8, 2019
1 parent 9ad3056 commit 9b28e64
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
zsh-git-prompt/
1 change: 0 additions & 1 deletion Brewfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ brew "tree"
brew "vim"
brew "yarn", args: ["without-node"]
brew "youtube-dl"
brew "zsh-git-prompt"
brew "heroku/brew/heroku"
brew "joshuaclayton/formulae/unused"
cask "qlcolorcode"
Expand Down
5 changes: 3 additions & 2 deletions zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ eval "$(hub alias -s)"
eval "$(thefuck --alias)"
eval "$(rbenv init -)"

if [ -f "$(brew --prefix)/opt/zsh-git-prompt/zshrc.sh" ]; then
source "$(brew --prefix)/opt/zsh-git-prompt/zshrc.sh"
# run `git clone [email protected]:starcraftman/zsh-git-prompt.git`
if [ -f "zsh-git-prompt/zshrc.sh" ]; then
source "zsh-git-prompt/zshrc.sh"
PROMPT='%(?.%F{green}√%f.%F{red}?%?%f) %F{yellow}%~%f $(git_super_status)
%F{7}%T%f %# '
fi
Expand Down

0 comments on commit 9b28e64

Please sign in to comment.