Update 'zsh.config'

This commit is contained in:
Aaron Fischer 2021-12-07 22:23:07 +01:00
parent e28fd95ce8
commit 13a5681866

View file

@ -1,6 +1,6 @@
CSTATUS="" CSTATUS=""
update_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 if [[ "$git_stat" = "" ]]; then
CSTATUS="" CSTATUS=""
else else
@ -16,5 +16,5 @@ add-zsh-hook precmd update_cstatus
setopt PROMPT_SUBST setopt PROMPT_SUBST
PS1='%T $CSTATUS %(?.%F{green}√.%F{red}?%?)%f %F{#666}%~%f %# ' 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"