mirror of
https://github.com/lloeki/dotfiles.git
synced 2025-12-06 07:24:39 +01:00
git_prompt_status now compatible with zsh
This commit is contained in:
parent
a29f48070a
commit
e1adf97cfe
4 changed files with 17 additions and 11 deletions
7
zsh/rc
7
zsh/rc
|
|
@ -13,6 +13,12 @@ source $DOTFILES_ZSH_DIR/completion
|
|||
source $DOTFILES_ZSH_DIR/prompt
|
||||
source $DOTFILES_ZSH_DIR/bundler
|
||||
|
||||
source $DOTFILES_SHELL_DIR/git_prompt_info
|
||||
GIT_PS1_SHOWDIRTYSTATE=1
|
||||
GIT_PS1_SHOWSTASHSTATE=1
|
||||
GIT_PS1_SHOWUNTRACKEDFILES=1
|
||||
__git_ps1_vars
|
||||
|
||||
precmd() {
|
||||
LAST_CMD_RC=$?
|
||||
psvar=()
|
||||
|
|
@ -26,6 +32,7 @@ preexec() {
|
|||
}
|
||||
|
||||
chpwd() {
|
||||
__git_ps1_vars
|
||||
#set_term_title
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue