Created
May 27, 2023 01:23
-
-
Save ryqndev/bb989056b5d0a127151599d15a65d5c6 to your computer and use it in GitHub Desktop.
Sea creature terminal prompt
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
# Get git branch information | |
autoload -Uz vcs_info | |
precmd() {vcs_info} | |
zstyle ':vcs_info:git:*' formats ' branch:%b' | |
setopt PROMPT_SUBST | |
# Array of sea creature emojis | |
PREPEND_SEA_CREATURE=(π³ π¬ π¦ π π π‘ π¦ π π π π¦) | |
# Prepend to every bash prompt | |
PROMPT='${PREPEND_SEA_CREATURE[$RANDOM % ${#PREPEND_SEA_CREATURE[@]}]} %n in %F{cyan}/${PWD##*/} %F{10}->%F{200}${vcs_info_msg_0_} %F{10}> ' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment