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
|
source $ZSH/oh-my-zsh.sh
|
||||||
|
|
||||||
|
if [[ -n "$MC_SID" ]]
|
||||||
|
then
|
||||||
|
zstyle ':vcs_info:*' check-for-changes false
|
||||||
|
fi
|
||||||
|
|
||||||
# User configuration
|
# User configuration
|
||||||
|
|
||||||
export GOPATH=~/go
|
export GOPATH=~/go
|
||||||
|
@ -102,9 +107,4 @@ source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zs
|
||||||
if [[ -z "$MC_SID" ]]
|
if [[ -z "$MC_SID" ]]
|
||||||
then
|
then
|
||||||
RPS1='%{$fg_bold[red]%}%?%{$reset_color%}'
|
RPS1='%{$fg_bold[red]%}%?%{$reset_color%}'
|
||||||
else
|
|
||||||
# in mc
|
|
||||||
function __git_prompt_git() {
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue