From 43dbed156f67d308f16817ce75ebbc787d9b1e1e Mon Sep 17 00:00:00 2001 From: "John A. Debay" Date: Thu, 20 Jun 2013 00:35:45 -0600 Subject: [PATCH] Added jad theme. --- themes/jad.zsh-theme | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 themes/jad.zsh-theme diff --git a/themes/jad.zsh-theme b/themes/jad.zsh-theme new file mode 100644 index 000000000..c40f38c24 --- /dev/null +++ b/themes/jad.zsh-theme @@ -0,0 +1,30 @@ +# +# A simple prompt that shows user, hostname, directory, git status (with +# emoji!), time, and command number. +# +# Adopted from http://ysmood.org/wp/2013/03/my-ys-terminal-theme/ +# + +function host_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]%}on%{$reset_color%} git:%{$fg[cyan]%}" +ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}" +ZSH_THEME_GIT_PROMPT_DIRTY=" %{$fg[red]%}⚡" +ZSH_THEME_GIT_PROMPT_CLEAN=" %{$fg[green]%}☀" + +# Prompt format: \n # USER@HOST DIRECTORY on git:BRANCH \n TIME [COMMAND] \n $ +PROMPT=" +%{$fg[cyan]%}%n@$(host_name) \ +%{$fg[white]%}\ +%{$fg[yellow]%}${current_dir}%{$reset_color%}\ +${git_info} +%{$fg[white]%}%* \ +%{$fg[white]%}[%h] \ +%(!.#.$) %{$reset_color%}"