Skip to content

Instantly share code, notes, and snippets.

@ariary
Last active February 1, 2022 15:04
Show Gist options
  • Save ariary/fe5be3ed5250cfbfc04f984c0525e498 to your computer and use it in GitHub Desktop.
Save ariary/fe5be3ed5250cfbfc04f984c0525e498 to your computer and use it in GitHub Desktop.
Change your afowler theme with a random animal
#!/bin/bash
ANIMAL="๐Ÿฆ"
sed -i "/PROMPT=/c\PROMPT=\'%{\$fg_bold[green]%}$ANIMAL %m%{\$reset_color%} %{\${fg_bold[blue]}%}:: %{\$reset_color%}%{\${fg[green]}%}%3~ \$(git_prompt_info)%{\${fg_bold[\$CARETCOLOR]}%}ยป%{\${reset_color}%} \'" ~/.oh-my-zsh/themes/afowler.zsh-theme
#!/bin/bash
ARRAY=(๐Ÿ™ˆ ๐Ÿ™‰ ๐Ÿ™Š ๐Ÿ’ ๐Ÿ” ๐Ÿง ๐Ÿฆ ๐Ÿค ๐Ÿฃ ๐Ÿฅ ๐Ÿฆ† ๐Ÿฆ… ๐Ÿฆ‰ ๐Ÿฆ‡ ๐Ÿบ ๐Ÿ— ๐Ÿด ๐Ÿฆ„ ๐Ÿ ๐Ÿชฑ ๐Ÿ› ๐Ÿฆ‹ ๐ŸŒ ๐Ÿž ๐Ÿœ ๐Ÿชฐ ๐Ÿชฒ ๐Ÿชณ ๐ŸฆŸ ๐Ÿฆ— ๐Ÿ•ท ๐Ÿ•ธ ๐Ÿฆ‚ ๐Ÿข ๐Ÿ ๐ŸฆŽ ๐Ÿฆ– ๐Ÿฆ• ๐Ÿ™ ๐Ÿฆ‘ ๐Ÿฆ ๐Ÿฆž ๐Ÿฆ€ ๐Ÿก ๐Ÿ  ๐ŸŸ ๐Ÿฌ ๐Ÿณ ๐Ÿ‹ ๐Ÿฆˆ ๐ŸŠ ๐Ÿ… ๐Ÿ† ๐Ÿฆ“ ๐Ÿฆ ๐Ÿฆง ๐Ÿฆฃ ๐Ÿ˜ ๐Ÿฆ› ๐Ÿฆ ๐Ÿช ๐Ÿซ ๐Ÿฆ’ ๐Ÿฆ˜ ๐Ÿฆฌ ๐Ÿƒ ๐Ÿ‚ ๐Ÿ„ ๐ŸŽ ๐Ÿ– ๐Ÿ ๐Ÿ‘ ๐Ÿฆ™ ๐Ÿ ๐ŸฆŒ ๐Ÿ• ๐Ÿฉ ๐Ÿฆฎ ๐Ÿ•โ€๐Ÿฆบ ๐Ÿˆ ๐Ÿˆโ€โฌ› ๐Ÿชถ ๐Ÿ“ ๐Ÿฆƒ ๐Ÿฆค ๐Ÿฆš ๐Ÿฆœ ๐Ÿฆข ๐Ÿฆฉ ๐Ÿ•Š ๐Ÿ‡ ๐Ÿฆ ๐Ÿฆจ ๐Ÿฆก ๐Ÿฆซ ๐Ÿฆฆ ๐Ÿฆฅ ๐Ÿ ๐Ÿ€ ๐Ÿฟ ๐Ÿฆ” ๐Ÿพ ๐Ÿ‰ ๐Ÿฒ)
size=${#ARRAY[@]}
index=$(($RANDOM % $size))
RANDOM_ANIMAL="${ARRAY[$index]}"
sed -i "/PROMPT=/c\PROMPT=\'%{\$fg_bold[green]%}$RANDOM_ANIMAL %m%{\$reset_color%} %{\${fg_bold[blue]}%}:: %{\$reset_color%}%{\${fg[green]}%}%3~ \$(git_prompt_info)%{\${fg_bold[\$CARETCOLOR]}%}ยป%{\${reset_color}%} \'" ~/.oh-my-zsh/themes/afowler.zsh-theme
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment