From 8587b1bdae1e8a3268c30eb0b3facc82cb5b2200 Mon Sep 17 00:00:00 2001 From: Nicolas McCurdy Date: Mon, 19 Mar 2012 03:05:41 -0400 Subject: [PATCH 1/6] add simplyblue theme --- themes/simplyblue.zsh-theme | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 themes/simplyblue.zsh-theme diff --git a/themes/simplyblue.zsh-theme b/themes/simplyblue.zsh-theme new file mode 100644 index 000000000..fe4490e08 --- /dev/null +++ b/themes/simplyblue.zsh-theme @@ -0,0 +1,7 @@ +PROMPT='%{$fg_bold[blue]%}%~ $(git_prompt_info)%{$fg_bold[yellow]%}➜ %{$reset_color%}' +RPROMPT='%{$fg_bold[blue]%}%T%{$reset_color%}' + +ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[cyan]%}" +ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} " +ZSH_THEME_GIT_PROMPT_DIRTY=" %{$fg[red]%}✗%{$reset_color%}" +ZSH_THEME_GIT_PROMPT_CLEAN=" %{$fg[green]%}✔%{$reset_color%}" From 4856d16e33a0f1fc7fae61b6a3a1910666af62f9 Mon Sep 17 00:00:00 2001 From: Nicolas McCurdy Date: Mon, 26 Mar 2012 03:17:49 -0400 Subject: [PATCH 2/6] simplyblue: display the hostname when the computer is accessed via ssh --- themes/simplyblue.zsh-theme | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/themes/simplyblue.zsh-theme b/themes/simplyblue.zsh-theme index fe4490e08..24e64b98a 100644 --- a/themes/simplyblue.zsh-theme +++ b/themes/simplyblue.zsh-theme @@ -1,6 +1,12 @@ -PROMPT='%{$fg_bold[blue]%}%~ $(git_prompt_info)%{$fg_bold[yellow]%}➜ %{$reset_color%}' +PROMPT='$(ssh_connection)%{$fg_bold[blue]%}%~ $(git_prompt_info)%{$fg_bold[yellow]%}➜ %{$reset_color%}' RPROMPT='%{$fg_bold[blue]%}%T%{$reset_color%}' +function ssh_connection() { + if [[ -n $SSH_CONNECTION ]]; then + echo "%{$fg_bold[red]%}$(hostname) " + fi +} + ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[cyan]%}" ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} " ZSH_THEME_GIT_PROMPT_DIRTY=" %{$fg[red]%}✗%{$reset_color%}" From e0a5d9174c62f7431448caf3de3f9ae8be603216 Mon Sep 17 00:00:00 2001 From: Nicolas McCurdy Date: Fri, 22 Jun 2012 10:05:46 -0400 Subject: [PATCH 3/6] make .sh files executable --- oh-my-zsh.sh | 0 tools/check_for_upgrade.sh | 0 tools/uninstall.sh | 0 tools/upgrade.sh | 0 4 files changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 oh-my-zsh.sh mode change 100644 => 100755 tools/check_for_upgrade.sh mode change 100644 => 100755 tools/uninstall.sh mode change 100644 => 100755 tools/upgrade.sh diff --git a/oh-my-zsh.sh b/oh-my-zsh.sh old mode 100644 new mode 100755 diff --git a/tools/check_for_upgrade.sh b/tools/check_for_upgrade.sh old mode 100644 new mode 100755 diff --git a/tools/uninstall.sh b/tools/uninstall.sh old mode 100644 new mode 100755 diff --git a/tools/upgrade.sh b/tools/upgrade.sh old mode 100644 new mode 100755 From 945d526eb415befa446c27cf0b38e3f9da63d726 Mon Sep 17 00:00:00 2001 From: Nicolas McCurdy Date: Fri, 22 Jun 2012 10:07:26 -0400 Subject: [PATCH 4/6] make install script point to my fork of oh-my-zsh --- tools/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/install.sh b/tools/install.sh index aedb706da..190e2d2b2 100755 --- a/tools/install.sh +++ b/tools/install.sh @@ -5,7 +5,7 @@ then fi echo "\033[0;34mCloning Oh My Zsh...\033[0m" -/usr/bin/env git clone https://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh +/usr/bin/env git clone https://github.com/thenickperson/oh-my-zsh.git ~/.oh-my-zsh echo "\033[0;34mLooking for an existing zsh config...\033[0m" if [ -f ~/.zshrc ] || [ -h ~/.zshrc ] From 5a2d82d7809333af86f0a3ec2fe7f0a19bd5521d Mon Sep 17 00:00:00 2001 From: Nicolas McCurdy Date: Fri, 22 Jun 2012 11:03:13 -0400 Subject: [PATCH 5/6] when installing, add original oh-my-zsh repo as upstream --- tools/install.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/install.sh b/tools/install.sh index 190e2d2b2..764210772 100755 --- a/tools/install.sh +++ b/tools/install.sh @@ -6,6 +6,7 @@ fi echo "\033[0;34mCloning Oh My Zsh...\033[0m" /usr/bin/env git clone https://github.com/thenickperson/oh-my-zsh.git ~/.oh-my-zsh +/usr/bin/env git remote add upstream https://github.com/robbyrussell/oh-my-zsh.git echo "\033[0;34mLooking for an existing zsh config...\033[0m" if [ -f ~/.zshrc ] || [ -h ~/.zshrc ] From 10316cbb42d744c66cedae65fdcc9cc969500806 Mon Sep 17 00:00:00 2001 From: Nicolas McCurdy Date: Fri, 22 Jun 2012 11:06:55 -0400 Subject: [PATCH 6/6] update install instructions for my fork's new URL --- README.textile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.textile b/README.textile index bf6776665..98ceaa63a 100644 --- a/README.textile +++ b/README.textile @@ -12,18 +12,18 @@ You can install this via the command line with either `curl` or `wget`. h4. via `curl` -@curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh@ +@curl -L https://github.com/thenickperson/oh-my-zsh/raw/master/tools/install.sh | sh@ h4. via `wget` -@wget --no-check-certificate https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh@ +@wget --no-check-certificate https://github.com/thenickperson/oh-my-zsh/raw/master/tools/install.sh -O - | sh@ h3. The manual way 1. Clone the repository - @git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh@ + @git clone git://github.com/thenickperson/oh-my-zsh.git ~/.oh-my-zsh@ 2. Create a new zsh config by copying the zsh template we've provided.