Skip to content

Instantly share code, notes, and snippets.

@hernandazevedo
Last active October 9, 2023 14:11
Show Gist options
  • Save hernandazevedo/2d3c8729651ce9e7403a050cf5cd5b01 to your computer and use it in GitHub Desktop.
Save hernandazevedo/2d3c8729651ce9e7403a050cf5cd5b01 to your computer and use it in GitHub Desktop.
.zshrc
# Install from https://github.com/felipec/git-completion/
# git-completion
autoload -U compinit && compinit
zmodload -i zsh/complist
GIT_PS1_SHOWCOLORHINTS=1
GIT_COMPLETION_CHECKOUT_NO_GUESS=1
GIT_COMPLETION_SHOW_ALL=1
fpath=(~/.local/share/git-completion/zsh $fpath)
source ~/.local/share/git-completion/prompt.sh
setopt PROMPT_SUBST
#PS1='%B%n@%m%~%b$(__git_ps1 "[%s]") %# '
PS1='%B%m%~%b$(__git_ps1 "[%s]") %# '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment