-
Notifications
You must be signed in to change notification settings - Fork 0
/
lazyprodigy-server.zsh-theme
35 lines (31 loc) · 1.16 KB
/
lazyprodigy-server.zsh-theme
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Lazy Prodigy Server Theme for ZSH
# ------------------------------------------------
# Clean, simple, compatible and meaningful.
# Tested on Linux, Unix and Windows under ANSI colors.
# It is recommended to use with a dark background and the font Inconsolata.
# Colors: black, red, green, yellow, *blue, magenta, cyan, and white.
#
# https://github.com/drewlustro/lazyprodigy-zsh-theme
# MIT License
# Sept 2013 drewlustro
# Machine name.
function box_name {
[ -f ~/.box-name ] && cat ~/.box-name || hostname -s
}
# Directory info.
local current_dir='${PWD/#$HOME/~}'
# Git info.
local git_info='$(git_prompt_info)'
ZSH_THEME_GIT_PROMPT_PREFIX=" %{$fg[white]%}♨%{$reset_color%} git:%{$fg[cyan]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_DIRTY=" %{$fg[red]%}x"
ZSH_THEME_GIT_PROMPT_CLEAN=" %{$fg[green]%}o"
# Prompt format: \n ☎ USER ☁ MACHINE ☁ DIRECTORY ♨ git:BRANCH STATE [TIME] \n $
PROMPT="
%{$terminfo[bold]$fg[red]%}☎%{$reset_color%} \
%{$fg[red]%}%n \
%{$fg[magenta]%}☁ $(box_name) ☁ \
%{$terminfo[bold]$fg[yellow]%}${current_dir}%{$reset_color%}\
${git_info} \
%{$fg[white]%}[%*]
%{$terminfo[bold]$fg[blue]%}$ %{$reset_color%}"