Skip to content

Instantly share code, notes, and snippets.

@atomofiron
Last active November 7, 2024 12:31
Show Gist options
  • Save atomofiron/dc6406edd55b596d2dcf93fd99a2350b to your computer and use it in GitHub Desktop.
Save atomofiron/dc6406edd55b596d2dcf93fd99a2350b to your computer and use it in GitHub Desktop.
Terminal prompt
PS1="\[\033[1;32m\[\u@\h\[\033[0m\[:\[\033[1;36m\[\w\[\033[0m\[\n$ "
PROMPT='%(?.%B%F{green}√%b.%F{red}! %?)%f %B%F{cyan}%~%f%b'$'\n''%# '
PROMPT='%(?.βœ….β›” %F{red}%?%f) %B%F{cyan}%~%f%b'$'\n''%(!.😈.%(?.πŸ™‚.πŸ₯²)) '
RPROMPT='%F{235}%*%f'
@atomofiron
Copy link
Author

atomofiron commented Feb 20, 2024

locally for user:

cat << EOF | tee -a ~/.zshrc
PROMPT='%(?.βœ….β›” %F{red}%?%f) %B%F{cyan}%~%f%b'$'\n''%(!.😈.%(?.πŸ™‚.πŸ₯²)) '
RPROMPT='%F{235}%*%f'
EOF

globally with sudo:

cat << EOF | sudo tee -a /etc/zshrc
PROMPT='%(?.βœ….β›” %F{red}%?%f) %B%F{cyan}%~%f%b'$'\n''%(!.😈.%(?.πŸ™‚.πŸ₯²)) '
RPROMPT='%F{235}%*%f'
EOF
zsh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment