Diff
1diff --git a/themes/ys.zsh-theme b/themes/ys.zsh-theme
2new file mode 100644
3index 0000000000000000000000000000000000000000..81f7e03faacf48c2826787a4b8e0ede82c61cc6c
4--- /dev/null
5+++ b/themes/ys.zsh-theme
6@@ -0,0 +1,22 @@
7+# Clean, simple, compatible and meaningful.
8+# Tested on Linux, Unix and Windows.
9+# It is recommanded to use with a dark background and the font Inconsolata.
10+# Colors: black, red, green, yellow, *blue, magenta, cyan, and white.
11+#
12+# Oct 2012 ys
13+
14+function box_name {
15+ [ -f ~/.box-name ] && cat ~/.box-name || hostname -s
16+}
17+
18+local current_dir='${PWD/#$HOME/~}'
19+local git_info='$(git_prompt_info)'
20+
21+ZSH_THEME_GIT_PROMPT_PREFIX=" %{$fg[white]%}on%{$reset_color%} git:%{$fg[cyan]%}"
22+ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
23+ZSH_THEME_GIT_PROMPT_DIRTY=" %{$fg[red]%}x"
24+ZSH_THEME_GIT_PROMPT_CLEAN=" %{$fg[green]%}o"
25+
26+PROMPT="
27+# %{$fg[green]%}%n%{$reset_color%} %{$fg[white]%}at%{$reset_color%} %{$fg[cyan]%}$(box_name)%{$reset_color%} %{$fg[white]%}in%{$reset_color%} %{$terminfo[bold]$fg[yellow]%}${current_dir}%{$reset_color%}${git_info} %{$fg[white]%}[%*]%{$reset_color%}
28+%{$fg[red]%}$ %{$reset_color%}"