]> git.armaanb.net Git - admone.git/blobdiff - admone.zsh
Update license year and email
[admone.git] / admone.zsh
index 77fd9875fd83e97ed9540f30c4027edadd6bde53..6c1dd1957af8e1ca39f2a571401de1c30ddf957b 100644 (file)
@@ -1,7 +1,6 @@
 # Admone Zsh prompt
-# Copyright Armaan Bhojwani 2020 <code@armaanb.net>
+# Copyright Armaan Bhojwani 2021 <me@armaanb.net>
 # MIT licensed, see the LICENSE file for more information.
-# Git repo at <https://codeberg.org/armaan/admone>
 
 #######################################################################
 # USER CONFIGURATIONS
@@ -46,7 +45,6 @@ admone-pwd() {
 }
 admone-vcs() {
   echo "%F{green}${vcs_info_msg_0_}%f"
-  VCS="1"
 }
 admone-exit-code() {
   ([[ $SHOW_0_EXIT_CODE == "1" ]] && echo "%(?,%F{cyan}%?%f,%F{red}%?%f)") ||
@@ -61,10 +59,6 @@ admone-12hr() {
 admone-24hr() {
   echo $(date +%T)
 }
-# Intergration with https://codeberg.org/armaan/zsh-command-time
-admone-time() {
-  echo "%F{cyan}$timer_show%f"
-}
 
 #######################################################################
 # BACKEND
@@ -127,7 +121,7 @@ if [[ $TRANSIENT_PROMPT == "1" ]]; then
   trap 'set-transient-prompt; return 130' INT
 fi
 
-if [[ $VCS = "1" ]]; then
+if [[ ! $(echo $INCLUDE | grep -q "vcs") ]]; then
   zstyle ':vcs_info:*' check-for-changes true
   autoload -Uz add-zsh-hook vcs-info
   add-zsh-hook precmd vcs_info