aboutsummaryrefslogtreecommitdiffstats
path: root/devi.zsh-theme
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2023-02-13 09:49:05 +0000
committerterminaldweller <thabogre@gmail.com>2023-02-13 09:49:05 +0000
commit3d864c067471c657b95979b30c2e5cdc603ad17b (patch)
tree81aec07b3c310a00b50634349838cef345a4a7bf /devi.zsh-theme
parentupdates (diff)
downloadscripts-3d864c067471c657b95979b30c2e5cdc603ad17b.tar.gz
scripts-3d864c067471c657b95979b30c2e5cdc603ad17b.zip
update
Diffstat (limited to 'devi.zsh-theme')
-rw-r--r--devi.zsh-theme82
1 files changed, 41 insertions, 41 deletions
diff --git a/devi.zsh-theme b/devi.zsh-theme
index 1cb132d..02e2167 100644
--- a/devi.zsh-theme
+++ b/devi.zsh-theme
@@ -104,47 +104,47 @@ is_in_git_repo() {
git rev-parse HEAD > /dev/null 2>&1
}
-steeef_preexec() {
- case "$2" in
- *git*)
- PR_GIT_UPDATE=1
- ;;
- *svn*)
- PR_GIT_UPDATE=1
- ;;
- esac
-}
-add-zsh-hook preexec steeef_preexec
-
-steeef_chpwd() {
- local result=$(git rev-parse --is-bare-repository 2> /dev/null)
- if [[ $? == 0 ]]; then
- if [[ $result == true ]]; then
- PR_GIT_UPDATE=
- else
- PR_GIT_UPDATE=1
- fi
- else
- PR_GIT_UPDATE=1
- fi
-}
-add-zsh-hook chpwd steeef_chpwd
-
-steeef_precmd() {
- if [[ -n "$PR_GIT_UPDATE" ]] ; then
- 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}"
- else
- FMT_BRANCH="${PM_RST} on %{$turquoise%}%s>%r>%b%u%c%a${PR_RST} "
- fi
- zstyle ':vcs_info:*:prompt:*' formats "${FMT_BRANCH}"
-
- vcs_info 'prompt'
- PR_GIT_UPDATE=
- fi
-}
-add-zsh-hook precmd steeef_precmd
+# steeef_preexec() {
+# case "$2" in
+# *git*)
+# PR_GIT_UPDATE=1
+# ;;
+# *svn*)
+# PR_GIT_UPDATE=1
+# ;;
+# esac
+# }
+# add-zsh-hook preexec steeef_preexec
+
+# steeef_chpwd() {
+# local result=$(git rev-parse --is-bare-repository 2> /dev/null)
+# if [[ $? == 0 ]]; then
+# if [[ $result == true ]]; then
+# PR_GIT_UPDATE=
+# else
+# PR_GIT_UPDATE=1
+# fi
+# else
+# PR_GIT_UPDATE=1
+# fi
+# }
+# add-zsh-hook chpwd steeef_chpwd
+
+# steeef_precmd() {
+# if [[ -n "$PR_GIT_UPDATE" ]] ; then
+# 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}"
+# else
+# FMT_BRANCH="${PM_RST} on %{$turquoise%}%s>%r>%b%u%c%a${PR_RST} "
+# fi
+# zstyle ':vcs_info:*:prompt:*' formats "${FMT_BRANCH}"
+
+# vcs_info 'prompt'
+# PR_GIT_UPDATE=
+# fi
+# }
+# add-zsh-hook precmd steeef_precmd
# function guess_who {
# upower -e > /dev/null 2>&1