diff options
author | xero <x@xero.nu> | 2017-01-23 00:13:18 -0500 |
---|---|---|
committer | xero <x@xero.nu> | 2017-01-23 00:13:18 -0500 |
commit | 3cf3b8ef6764c9ec44605904217f51f1eba8e6d6 (patch) | |
tree | 0d9fb7adc1bed97e3dbd0c76c045d6c437e09086 /zsh/.zsh/custom-prompt.zsh | |
parent | 5a4d4a06a287985fbf5b458056881d3d0a0c71aa (diff) | |
download | dotfiles_ascii-3cf3b8ef6764c9ec44605904217f51f1eba8e6d6.tar.xz dotfiles_ascii-3cf3b8ef6764c9ec44605904217f51f1eba8e6d6.zip |
zsh updates
Diffstat (limited to '')
-rwxr-xr-x | zsh/.zsh/custom-prompt.zsh | 40 |
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' |