zsh: better way to disable git in mc
This commit is contained in:
parent
6d253bb40a
commit
25b7192738
1 changed files with 5 additions and 5 deletions
10
dot_zshrc
10
dot_zshrc
|
@ -54,6 +54,11 @@ fi
|
|||
|
||||
source $ZSH/oh-my-zsh.sh
|
||||
|
||||
if [[ -n "$MC_SID" ]]
|
||||
then
|
||||
zstyle ':vcs_info:*' check-for-changes false
|
||||
fi
|
||||
|
||||
# User configuration
|
||||
|
||||
export GOPATH=~/go
|
||||
|
@ -102,9 +107,4 @@ source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zs
|
|||
if [[ -z "$MC_SID" ]]
|
||||
then
|
||||
RPS1='%{$fg_bold[red]%}%?%{$reset_color%}'
|
||||
else
|
||||
# in mc
|
||||
function __git_prompt_git() {
|
||||
return 0
|
||||
}
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue