diff options
author | terminaldweller <thabogre@gmail.com> | 2021-09-10 07:30:16 +0000 |
---|---|---|
committer | terminaldweller <thabogre@gmail.com> | 2021-09-10 07:30:16 +0000 |
commit | 118106cf745167db7e17654e0402721939631be7 (patch) | |
tree | 72927b53141eabee87a0160420f720b49a744076 /devi.zsh-theme | |
parent | update (diff) | |
download | scripts-118106cf745167db7e17654e0402721939631be7.tar.gz scripts-118106cf745167db7e17654e0402721939631be7.zip |
update
Diffstat (limited to '')
-rw-r--r-- | devi.zsh-theme | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/devi.zsh-theme b/devi.zsh-theme index 989dd77..4c4aa33 100644 --- a/devi.zsh-theme +++ b/devi.zsh-theme @@ -100,7 +100,6 @@ is_in_git_repo() { } steeef_preexec() { - #case "$(history $HISTCMD)" in case "$2" in *git*) PR_GIT_UPDATE=1 @@ -113,8 +112,6 @@ steeef_preexec() { add-zsh-hook preexec steeef_preexec steeef_chpwd() { - # is_in_git_repo || return - #this is here so we dont get errors when we are in a bare git dir local result=$(git rev-parse --is-bare-repository 2> /dev/null) if [[ $? == 0 ]]; then if [[ $result == true ]]; then @@ -130,7 +127,6 @@ add-zsh-hook chpwd steeef_chpwd steeef_precmd() { if [[ -n "$PR_GIT_UPDATE" ]] ; then - # check for untracked files or updated submodules, since vcs_info doesn't if [[ ! -z $(git ls-files --other --exclude-standard 2> /dev/null) ]]; then PR_GIT_UPDATE=1 FMT_BRANCH="${PM_RST} on %{$turquoise%}%s-➜%r-➜%b%u%c%a%{$hotpink%} ●${PR_RST}" |