Created
March 12, 2019 21:43
-
-
Save MojtabaMonfared/aedcad0c9bab0807e2b835c3bf2d6844 to your computer and use it in GitHub Desktop.
My Personal zsh theme based Amuse
This file contains hidden or 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
| # vim:ft=zsh ts=2 sw=2 sts=2 | |
| rvm_current() { | |
| rvm current 2>/dev/null | |
| } | |
| EMOJI=(๐ฉ ๐ฆ ๐ ๐ ๐จ ๐ ๐ญ ๐ฝ โ๏ธ ๐ฌ ๐ ๐ท๐ ๐ ๐ ๐คฃ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ฅฐ ๐ ๐ ๐ โบ๏ธ ๐ ๐ค ๐คฉ ๐ค ๐คจ ๐ ๐ ๐ถ ๐ ๐ ๐ฃ ๐ฅ ๐ฎ ๐ค ๐ฏ ๐ช ๐ซ ๐ด ๐ ๐ ๐ ๐ ๐คค ๐ ๐ ๐ ๐ ๐ ๐ค ๐ฒ โน๏ธ ๐ ๐ ๐ ๐ ๐ค ๐ข ๐ญ ๐ฆ ๐ง ๐จ ๐ฉ ๐คฏ ๐ฌ ๐ฐ ๐ฑ ๐ฅต ๐ฅถ ๐ณ ๐คช ๐ต ๐ก ๐ ๐คฌ ๐ท ๐ค ๐ค ๐คข ๐คฎ ๐คง ๐ ๐ค ๐คก ๐ฅณ ๐ฅด ๐ฅบ ๐คฅ ๐คซ ๐คญ ๐ง ๐ค ๐ ๐ฟ๐ถ ๐ฑ ๐ญ ๐น ๐ฐ ๐ฆ ๐ฆ ๐ป ๐ผ ๐ฆ ๐ฆก ๐จ ๐ฏ ๐ฆ ๐ฎ ๐ท ๐ฝ ๐ธ ๐ต ๐ ๐ ๐ ๐ ๐ ๐ง ๐ฆ ๐ค ๐ฃ ๐ฅ ๐ฆ ๐ฆข ๐ฆ ๐ฆ ๐ฆ ๐ฆ ๐ฆ ๐บ ๐ ๐ด ๐ฆ ๐ ๐ ๐ฆ ๐ ๐ ๐ ๐ ๐ฆ ๐ท ๐ธ ๐ฆ ๐ฆ ๐ฆ ๐ข ๐ ๐ฆ ๐ฆ ๐ฆ ๐ ๐ฆ ๐ฆ ๐ฆ ๐ก ๐ ๐ ๐ฌ ๐ณ ๐ ๐ฆ ๐ ๐ ๐ ๐ฆ ๐ฆ ๐ ๐ฆ ๐ฆ ๐ช ๐ซ ๐ฆ ๐ฆ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ฆ ๐ ๐ฉ ๐ ๐ ๐ฆ ๐ ๐ ๐ ๐ฆ ๐พ ๐ ๐ฒ ๐ต ๐ ๐ฒ ๐ณ ๐ด ๐ฑ ๐ฟ โ๏ธ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐พ ๐ ๐ท ๐น ๐ฅ ๐บ ๐ธ ๐ผ ๐ป ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ซ โญ๏ธ ๐ โจ โก๏ธ โ๏ธ ๐ฅ ๐ฅ ๐ โ๏ธ โ ๏ธ โ๏ธ โ๏ธ โ๏ธ โ๏ธ ๐จ ๐ง ๐ฆ โ๏ธ โ๏ธ ๐ ๐น ๐บ ๐ ๐ ๐ง ๐ฆด ๐ฆท ๐ป ๐ฝ ๐ค ๐ฉ ๐บ ๐ธ ๐น ๐ป ๐ผ โค๏ธ ๐งก ๐ ๐ ๐ ๐ ๐ค ๐ โฃ๏ธ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐๐ฝ ๐ ๐ฟ ๐พ ๐ผ ๐ถ ๐ธ ๐ง ๐ณ ๐ ๐ฃ ๐ป ๐ฎ ๐ฐ ๐ ๐พ ๐ ๐ช ๐ ๐ ๐ ๐ ๐ ) | |
| function random_emoji { | |
| echo -n "$EMOJI[$RANDOM%$#EMOJI+1]" | |
| } | |
| rbenv_version() { | |
| rbenv version 2>/dev/null | awk '{print $1}' | |
| } | |
| PROMPT=' | |
| $(random_emoji) %{$fg_bold[green]%}%~%{$reset_color%}$(git_prompt_info) โ %{$FG[013]%}%*%{$reset_color%} | |
| %{$fg_bold[cyan]%}$ ' | |
| # Must use Powerline font, for \uE0A0 to render. | |
| ZSH_THEME_GIT_PROMPT_PREFIX=" on %{$fg[magenta]%}\uE0A0 " | |
| ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}" | |
| ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%}!" | |
| ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg[green]%}?" | |
| ZSH_THEME_GIT_PROMPT_CLEAN="" | |
| if [ -e ~/.rvm/bin/rvm-prompt ]; then | |
| RPROMPT='%{$fg_bold[red]%}โน$(rvm_current)โบ%{$reset_color%}' | |
| else | |
| if which rbenv &> /dev/null; then | |
| RPROMPT='%{$fg_bold[red]%}$(rbenv_version)%{$reset_color%}' | |
| fi | |
| fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment