Update 'zsh.config'
This commit is contained in:
parent
e28fd95ce8
commit
13a5681866
1 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
CSTATUS=""
|
||||
update_cstatus() {
|
||||
git_stat=`cd /opt/tools/c/; git diff --shortstat | tr -c -d '[0-9,]'`
|
||||
git_stat=`cd /opt/tools/c/repo; git diff --shortstat | tr -c -d '[0-9,]'`
|
||||
if [[ "$git_stat" = "" ]]; then
|
||||
CSTATUS=""
|
||||
else
|
||||
|
@ -16,5 +16,5 @@ add-zsh-hook precmd update_cstatus
|
|||
setopt PROMPT_SUBST
|
||||
PS1='%T $CSTATUS %(?.%F{green}√.%F{red}?%?)%f %F{#666}%~%f %# '
|
||||
|
||||
alias c="/opt/tools/c/c.sh"
|
||||
alias c="/opt/tools/c/c.sh/c.sh"
|
||||
|
||||
|
|
Loading…
Reference in a new issue