From 073d41bb28eadf84ed24e71f2a4db28ad774bd3b Mon Sep 17 00:00:00 2001 From: Carter Tazio Schonwald Date: Sat, 19 Feb 2011 13:07:43 -0500 Subject: [PATCH 1/6] adding simpler gallifrey theme --- themes/carter.zsh-theme | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 themes/carter.zsh-theme diff --git a/themes/carter.zsh-theme b/themes/carter.zsh-theme new file mode 100644 index 000000000..d8ccc7144 --- /dev/null +++ b/themes/carter.zsh-theme @@ -0,0 +1,8 @@ +# ZSH Theme - Preview: http://img.skitch.com/20091113-qqtd3j8xinysujg5ugrsbr7x1y.jpg +local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})" + +PROMPT='%{$fg[green]%}%n%{$reset_color%} %2~ $(git_prompt_info)%{$reset_color%}%B»%b ' +RPS1="${return_code}" + +ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[yellow]%}‹" +ZSH_THEME_GIT_PROMPT_SUFFIX="› %{$reset_color%}" From 460e2db35092dca1165c064c5c139e5b8ceff6ed Mon Sep 17 00:00:00 2001 From: Carter Tazio Schonwald Date: Sun, 17 Apr 2011 21:08:45 -0400 Subject: [PATCH 2/6] fixed itab, though renamed to ntab. originally from http://xanana.ucsc.edu/xtal/iterm_tab_customization.html simplified to https://gist.github.com/924342 --- plugins/osx/osx.plugin.zsh | 81 ++++++++++++++++++-------------------- 1 file changed, 38 insertions(+), 43 deletions(-) diff --git a/plugins/osx/osx.plugin.zsh b/plugins/osx/osx.plugin.zsh index 81eed5e92..d75dbff7d 100644 --- a/plugins/osx/osx.plugin.zsh +++ b/plugins/osx/osx.plugin.zsh @@ -5,53 +5,48 @@ function savepath() { function tab() { savepath osascript >/dev/null </dev/null < Date: Sun, 17 Apr 2011 21:41:46 -0400 Subject: [PATCH 3/6] modified ntabs to work with both iterm and term! has the correct no arg and arg behavior for both -Carter --- plugins/osx/osx.plugin.zsh | 63 ++++++++++++++++++++++---------------- 1 file changed, 37 insertions(+), 26 deletions(-) diff --git a/plugins/osx/osx.plugin.zsh b/plugins/osx/osx.plugin.zsh index d75dbff7d..6700c0010 100644 --- a/plugins/osx/osx.plugin.zsh +++ b/plugins/osx/osx.plugin.zsh @@ -1,9 +1,6 @@ -function savepath() { - pwd > ~/.current_path~ -} + function tab() { -savepath osascript >/dev/null < Date: Wed, 20 Apr 2011 16:23:10 -0400 Subject: [PATCH 4/6] fixed relative cd fu --- plugins/osx/osx.plugin.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/osx/osx.plugin.zsh b/plugins/osx/osx.plugin.zsh index 6700c0010..13addde82 100644 --- a/plugins/osx/osx.plugin.zsh +++ b/plugins/osx/osx.plugin.zsh @@ -46,7 +46,7 @@ else activate current session launch session \"Default Session\" tell the current session - write text \"cd \\\"$ThisDirectory\\\"\" + write text \"cd \\\"$PWD\\\"; cd \\\"$ThisDirectory\\\"\" end tell end tell end tell From ca447667f92bdd91f4dc0004eed32fd4af29081d Mon Sep 17 00:00:00 2001 From: Carter Tazio Schonwald Date: Wed, 27 Apr 2011 02:46:06 -0400 Subject: [PATCH 5/6] cleaned up the formatting --- plugins/osx/osx.plugin.zsh | 50 +++++++++++++++++++------------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/plugins/osx/osx.plugin.zsh b/plugins/osx/osx.plugin.zsh index 13addde82..f2d6563e2 100644 --- a/plugins/osx/osx.plugin.zsh +++ b/plugins/osx/osx.plugin.zsh @@ -29,34 +29,34 @@ fi if [[ $TERM_PROGRAM != iTerm.app ]]; then - osascript -e "tell application \"System Events\" - tell process \"Terminal\" to keystroke \"t\" using command down - end - tell application \"Terminal\" - activate - do script with command \"cd \\\"$ThisDirectory\\\"\" in window 1 - end tell" + osascript -e " tell application \"System Events\" + tell process \"Terminal\" to keystroke \"t\" using command down + end + tell application \"Terminal\" + activate + do script with command \"cd \\\"$ThisDirectory\\\"\" in window 1 + end tell" return 1 else osascript -e " tell app \"Finder\" - activate - tell application \"iTerm\" - -- make new terminal - tell the front terminal - activate current session - launch session \"Default Session\" - tell the current session - write text \"cd \\\"$PWD\\\"; cd \\\"$ThisDirectory\\\"\" - end tell - end tell - end tell - tell application \"Finder\" - activate - end tell - tell application \"iTerm\" - activate - end tell - end tell" + activate + tell application \"iTerm\" + make new terminal + tell the front terminal + activate current session + launch session \"Default Session\" + tell the current session + write text \"cd \\\"$PWD\\\"; cd \\\"$ThisDirectory\\\"\" + end tell + end tell + end tell + tell application \"Finder\" + activate + end tell + tell application \"iTerm\" + activate + end tell + end tell" fi From 13832fd04c7f046c79bb9f199cbf53ce3aaf6278 Mon Sep 17 00:00:00 2001 From: Carter Tazio Schonwald Date: Wed, 27 Apr 2011 02:49:02 -0400 Subject: [PATCH 6/6] cleanup works, and lacks the finder wonkiness --- plugins/osx/osx.plugin.zsh | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/plugins/osx/osx.plugin.zsh b/plugins/osx/osx.plugin.zsh index f2d6563e2..b03e1f637 100644 --- a/plugins/osx/osx.plugin.zsh +++ b/plugins/osx/osx.plugin.zsh @@ -38,9 +38,7 @@ if [[ $TERM_PROGRAM != iTerm.app ]]; then end tell" return 1 else - osascript -e " tell app \"Finder\" - activate - tell application \"iTerm\" + osascript -e " tell application \"iTerm\" make new terminal tell the front terminal activate current session @@ -50,13 +48,9 @@ else end tell end tell end tell - tell application \"Finder\" - activate - end tell tell application \"iTerm\" activate - end tell - end tell" + end tell " fi