Last active
January 21, 2021 14:12
-
-
Save 0x3333/56ec31f7e7c56f6ed75f9073d48a5d58 to your computer and use it in GitHub Desktop.
ZSH 0x3333 Prompt Variation
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
# | |
# 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