Skip to content

Instantly share code, notes, and snippets.

@0x3333
Last active September 21, 2017 22:12
Show Gist options
  • Save 0x3333/21c989baa4aa09d57d30df588c20a8c0 to your computer and use it in GitHub Desktop.
Save 0x3333/21c989baa4aa09d57d30df588c20a8c0 to your computer and use it in GitHub Desktop.
Prezto Prompt
#
# Authors:
# Tercio Gaudencio Filho <terciofilho@gmail.com>
#
# Ex:
# USERNAME@HOSTNAME [/FULL/PATH] ✘ $ TIME
function prompt_0x3333_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@%M %F{cyan}[%/]%f %(?:%F{green}➜ %f:%F{red}✘ %f) %(1j:%F{cyan}⚙ %f:) $ '
RPROMPT='%B%F{white}%*%f%b'
}
prompt_0x3333_setup "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment