Skip to content

Instantly share code, notes, and snippets.

@hayd
Created February 25, 2021 17:09
Show Gist options
  • Save hayd/2aacdb988028bb96a8ff5e3bea30e16e to your computer and use it in GitHub Desktop.
Save hayd/2aacdb988028bb96a8ff5e3bea30e16e to your computer and use it in GitHub Desktop.
#!/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