aboutsummaryrefslogtreecommitdiff
path: root/zsh/.zsh/custom-prompt.zsh
diff options
context:
space:
mode:
Diffstat (limited to 'zsh/.zsh/custom-prompt.zsh')
-rwxr-xr-xzsh/.zsh/custom-prompt.zsh40
1 files changed, 0 insertions, 40 deletions
diff --git a/zsh/.zsh/custom-prompt.zsh b/zsh/.zsh/custom-prompt.zsh
deleted file mode 100755
index 495aa37..0000000
--- a/zsh/.zsh/custom-prompt.zsh
+++ /dev/null
@@ -1,40 +0,0 @@
-# ██
-# ░██
-# ██████ ██████░██
-# ░░░░██ ██░░░░ ░██████
-# ██ ░░█████ ░██░░░██
-# ██ ░░░░░██░██ ░██
-# ██████ ██████ ░██ ░██
-# ░░░░░░ ░░░░░░ ░░ ░░
-#
-# ▓▓▓▓▓▓▓▓▓▓
-# ░▓ author ▓ xero <x@xero.nu>
-# ░▓ code ▓ http://code.xero.nu/dotfiles
-# ░▓ mirror ▓ http://git.io/.files
-# ░▓▓▓▓▓▓▓▓▓▓
-# ░░░░░░░░░░
-#
-#█▓▒░ colors for permissions
-if [[ "$EUID" -ne "0" ]]
-then # if user is not root
- USER_LEVEL="%F{cyan}"
-else # root!
- USER_LEVEL="%F{red}"
-fi
-
-#█▓▒░ allow functions in the prompt
-setopt PROMPT_SUBST
-
-#█▓▒░ autoload zsh functions
-fpath=(~/.zsh/functions $fpath)
-autoload -U ~/.zsh/functions/*(:t)
-
-#█▓▒░ enable auto-execution of functions
-typeset -ga preexec_functions
-typeset -ga precmd_functions
-typeset -ga chpwd_functions
-
-#█▓▒░ prepend git functions needed for prompt
-preexec_functions+='preexec_update_git_vars'
-precmd_functions+='precmd_update_git_vars'
-chpwd_functions+='chpwd_update_git_vars'