added git status display for prompt
This commit is contained in:
parent
250a3b41f3
commit
691b6311f7
1 changed files with 7 additions and 2 deletions
|
|
@ -35,8 +35,12 @@ autoload -Uz colors && colors
|
||||||
autoload -Uz vcs_info
|
autoload -Uz vcs_info
|
||||||
precmd() { vcs_info }
|
precmd() { vcs_info }
|
||||||
|
|
||||||
# Format the vcs_info_msg_0_ variable
|
# git info/styling for prompt
|
||||||
zstyle ':vcs_info:git:*' formats '%b'
|
zstyle ':vcs_info:*' check-for-changes true
|
||||||
|
zstyle ':vcs_info:*' unstagedstr '%B%F{green} ✓'
|
||||||
|
zstyle ':vcs_info:*' stagedstr '%B%F{yellow} +'
|
||||||
|
zstyle ':vcs_info:git:*' formats '%b%u%c'
|
||||||
|
zstyle ':vcs_info:git:*' actionformats '%b|%a%u%c'
|
||||||
|
|
||||||
# Set up the prompt (with git branch name)
|
# Set up the prompt (with git branch name)
|
||||||
setopt PROMPT_SUBST
|
setopt PROMPT_SUBST
|
||||||
|
|
@ -89,6 +93,7 @@ alias js="cd ~/Documents/Code/javascript"
|
||||||
alias py="cd ~/Documents/Code/python"
|
alias py="cd ~/Documents/Code/python"
|
||||||
alias wtuts="cd ~/Documents/Code/web_tutorials"
|
alias wtuts="cd ~/Documents/Code/web_tutorials"
|
||||||
alias btuts="cd ~/Documents/Code/book_tutorials"
|
alias btuts="cd ~/Documents/Code/book_tutorials"
|
||||||
|
alias fonts="fc-list"
|
||||||
alias locate="locate -i"
|
alias locate="locate -i"
|
||||||
alias bat="bat --theme Nord"
|
alias bat="bat --theme Nord"
|
||||||
alias batman="man bat"
|
alias batman="man bat"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue