Skip to content

Instantly share code, notes, and snippets.

@vyuvalv
Last active February 6, 2020 14:14
Show Gist options
  • Save vyuvalv/09b2ced3a3f14a497a43e4872da7095b to your computer and use it in GitHub Desktop.
Save vyuvalv/09b2ced3a3f14a497a43e4872da7095b to your computer and use it in GitHub Desktop.
my awesome zsh theme => /Users/<MYUSER>/.oh-my-zsh/themes
ZSH_THEME_GIT_PROMPT_PREFIX=" %{$fg[gray]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_DIRTY=" %{$fg[green]%}⚡"
ZSH_THEME_GIT_PROMPT_CLEAN=""
function prompt_char {
if [ $UID -eq 0 ]; then echo "%{$fg[red]%}#%{$reset_color%}"; else echo $; fi
}
local current_dir='%{$fg[red]%}[%{$reset_color%} %{$fg_bold[yellow]%}%~% %{$reset_color%} %{$fg[red]%}]%{$reset_color%}'
local git_branch='$(git_prompt_info)%{$reset_color%}'
# MAIN PROMPT
PROMPT="
%(?,%{$fg[red]%}┌─╼${current_dir}%{$reset_color%} ${git_branch}
%{$fg[red]%}└────%{$fg_bold[yellow]%}➤ %{$reset_color%} ,%{$fg[red]%}┌─╼${current_dir}%{$reset_color%} ${git_branch}
%{$fg[red]%}└%{$fg_bold[yellow]%}➤ %{$reset_color%} %$(prompt_char)"
# RIGHT PROMPT
RPROMPT='@%{$fg[magenta]%}%n%{$reset_color%}%{$fg[cyan]%} ✭ %m % ⭐️ %{$fg_bold[yellow]%} %D{%c} %{$reset_color%}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment