From 43dbed156f67d308f16817ce75ebbc787d9b1e1e Mon Sep 17 00:00:00 2001 From: "John A. Debay" Date: Thu, 20 Jun 2013 00:35:45 -0600 Subject: [PATCH 1/3] 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%}" From 63949fa29319e7f13181a58959e6af4289416f58 Mon Sep 17 00:00:00 2001 From: "John A. Debay" Date: Fri, 21 Jun 2013 22:44:43 -0600 Subject: [PATCH 2/3] Added git flow completion plugin --- plugins/git-flow-completion | 1 + 1 file changed, 1 insertion(+) create mode 120000 plugins/git-flow-completion diff --git a/plugins/git-flow-completion b/plugins/git-flow-completion new file mode 120000 index 000000000..96d6f14f2 --- /dev/null +++ b/plugins/git-flow-completion @@ -0,0 +1 @@ +/Users/jad/src/home/git-flow-completion \ No newline at end of file From e75c737ff6934310e289d8ef4500f4a962bdf532 Mon Sep 17 00:00:00 2001 From: "John A. Debay" Date: Sat, 22 Jun 2013 00:15:20 -0600 Subject: [PATCH 3/3] Remove unneeded custom plugin --- plugins/git-flow-completion | 1 - 1 file changed, 1 deletion(-) delete mode 120000 plugins/git-flow-completion diff --git a/plugins/git-flow-completion b/plugins/git-flow-completion deleted file mode 120000 index 96d6f14f2..000000000 --- a/plugins/git-flow-completion +++ /dev/null @@ -1 +0,0 @@ -/Users/jad/src/home/git-flow-completion \ No newline at end of file