Parent directory

sonicradish.zsh-theme

1318 bytes
 1#!/usr/bin/env zsh
 2#local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
 3
 4setopt promptsubst
 5
 6autoload -U add-zsh-hook
 7ROOT_ICON_COLOR=$FG[111]
 8MACHINE_NAME_COLOR=$FG[208]
 9PROMPT_SUCCESS_COLOR=$FG[103]
10PROMPT_FAILURE_COLOR=$FG[124]
11PROMPT_VCS_INFO_COLOR=$FG[242]
12PROMPT_PROMPT=$FG[208]
13GIT_DIRTY_COLOR=$FG[124]
14GIT_CLEAN_COLOR=$FG[148]
15GIT_PROMPT_INFO=$FG[148]
16
17# Hash
18ROOT_ICON="# "
19if [[ $EUID -ne 0 ]] ; then
20	ROOT_ICON=""
21fi
22
23PROMPT='%{$ROOT_ICON_COLOR%}$ROOT_ICON%{$reset_color%}%{$MACHINE_NAME_COLOR%}%m➜  %{$reset_color%}%{$PROMPT_SUCCESS_COLOR%}%c%{$reset_color%} %{$GIT_PROMPT_INFO%}$(git_prompt_info)%{$GIT_DIRTY_COLOR%}$(git_prompt_status) %{$reset_color%}%{$PROMPT_PROMPT%}ᐅ %{$reset_color%} '
24
25#RPS1="${return_code}"
26
27ZSH_THEME_GIT_PROMPT_PREFIX=": "
28ZSH_THEME_GIT_PROMPT_SUFFIX="%{$GIT_PROMPT_INFO%} :"
29ZSH_THEME_GIT_PROMPT_DIRTY=" %{$GIT_DIRTY_COLOR%}✘"
30ZSH_THEME_GIT_PROMPT_CLEAN=" %{$GIT_CLEAN_COLOR%}✔"
31
32ZSH_THEME_GIT_PROMPT_ADDED="%{$FG[103]%}✚%{$reset_color%}"
33ZSH_THEME_GIT_PROMPT_MODIFIED="%{$FG[103]%}✹%{$reset_color%}"
34ZSH_THEME_GIT_PROMPT_DELETED="%{$FG[103]%}✖%{$reset_color%}"
35ZSH_THEME_GIT_PROMPT_RENAMED="%{$FG[103]%}➜%{$reset_color%}"
36ZSH_THEME_GIT_PROMPT_UNMERGED="%{$FG[103]%}═%{$reset_color%}"
37ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$FG[103]%}✭%{$reset_color%}"