Skip to content

Commit e58ef34

Browse files
Ben Hilburnbhilburn
Ben Hilburn
authored andcommitted
zsh: adding my zsh theme
0 parents  commit e58ef34

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

hokietux.zsh-theme

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Color shortcuts
2+
R=$fg[red]
3+
G=$fg[green]
4+
M=$fg[magenta]
5+
RB=$fg_bold[red]
6+
YB=$fg_bold[yellow]
7+
BB=$fg_bold[blue]
8+
9+
if [ "$(whoami)" = "root" ]; then
10+
PROMPTCOLOR="%{$RB%}" PREFIX="-!-";
11+
else
12+
PROMPTCOLOR="" PREFIX="---";
13+
fi
14+
15+
local return_code="%(?..%{$RB%}%? ↵%{$reset_color%})"
16+
17+
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%}±(%{$fg_bold[yellow]%}"
18+
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$fg_bold[blue]%})%{$reset_color%}"
19+
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg_bold[red]%}⚡%{$reset_color%}"
20+
ZSH_THEME_GIT_PROMPT_AHEAD="%{$fg_bold[yellow]%}↑%{$reset_color%}"
21+
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg_bold[green]%}✓%{$reset_color%}"
22+
23+
ZSH_THEME_GIT_PROMPT_ADDED="%{$fg[green]%} ✚"
24+
ZSH_THEME_GIT_PROMPT_MODIFIED="%{$fg[blue]%} ✹"
25+
ZSH_THEME_GIT_PROMPT_DELETED="%{$fg[red]%} ✖"
26+
ZSH_THEME_GIT_PROMPT_RENAMED="%{$fg[magenta]%} ➜"
27+
ZSH_THEME_GIT_PROMPT_UNMERGED="%{$fg[yellow]%} ═"
28+
ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg[cyan]%} ✭"
29+
30+
PROMPT='[%{$fg_bold[green]%}%~%{$fg_no_bold[white]%}]%{$fg_bold[red]%}➜$(git_prompt_info)%{$reset_color%}$(git_prompt_status)%{$reset_color%} $ '
31+
RPROMPT='${return_code}[%{$fg_no_bold[yellow]%}%h%{$reset_color%}][%*]'
32+

0 commit comments

Comments
 (0)