Created
February 25, 2021 17:09
-
-
Save hayd/2aacdb988028bb96a8ff5e3bea30e16e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env zsh | |
# Nothing theme with the counter removed | |
NT_PROMPT_SYMBOL=❱ | |
function precmd(){ | |
autoload -U add-zsh-hook | |
setopt prompt_subst | |
if [[ "$NT_HIDE_COUNT" == '1' ]]; then | |
command_count='' | |
else | |
command_count='%F{gray}%i %f' | |
fi | |
PROMPT='%(?.%F{green}${NT_PROMPT_SYMBOL}%f.%F{red}${NT_PROMPT_SYMBOL}%f) ' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment