Skip to content

Instantly share code, notes, and snippets.

@0x3333
Last active January 21, 2021 14:12
Show Gist options
  • Save 0x3333/56ec31f7e7c56f6ed75f9073d48a5d58 to your computer and use it in GitHub Desktop.
Save 0x3333/56ec31f7e7c56f6ed75f9073d48a5d58 to your computer and use it in GitHub Desktop.
ZSH 0x3333 Prompt Variation
#
# Authors:
# Tercio Gaudencio Filho <terciofilho@gmail.com>
#
# Ex:
# USERNAME@HOSTNAME [TIME] [/FULL/PATH] ✘ $
function prompt_0x3333_2_setup {
setopt LOCAL_OPTIONS
unsetopt XTRACE KSH_ARRAYS
prompt_opts=(cr percent sp subst) # http://zsh.sourceforge.net/Doc/Release/Options.html#Prompting
# Define prompts.
PROMPT='%n@'"$(hostname -f)"' %F{cyan}[%/]%f [%B%F{white}%*%f%b] %(?:%F{green}➜ %f:%F{red}✘ %f) %(1j:%F{cyan}⚙ %f:) $ '
}
prompt_0x3333_2_setup "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment