From 7b8c56300e1c42a6426def6ea8ca83e52dad73b4 Mon Sep 17 00:00:00 2001 From: Ian Chesal Date: Wed, 8 Feb 2012 18:26:26 -0500 Subject: [PATCH 1/7] First instance of the MacTeX plugin Only ensures that the /usr/texbin and ~/texbin directories are on your PATH if they're not already there. I'll expand it further to include some help TeX-specific functions and aliases in the future. --- plugins/mactex/mactex.plugin.zsh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 plugins/mactex/mactex.plugin.zsh diff --git a/plugins/mactex/mactex.plugin.zsh b/plugins/mactex/mactex.plugin.zsh new file mode 100644 index 000000000..78280f91a --- /dev/null +++ b/plugins/mactex/mactex.plugin.zsh @@ -0,0 +1,9 @@ +LATEX=`which latex` +if [[ $LATEX == 'latex not found' ]] ; then + if [ -d /usr/texbin ] ; then + export PATH=/usr/texbin:${PATH} + fi + if [ -d ~/texbin ] ; then + export PATH=~/texbin;${PATH} + fi +fi \ No newline at end of file From df6fe1e40d9aa8442b329be81335bef079b435c4 Mon Sep 17 00:00:00 2001 From: Ian Chesal Date: Wed, 7 Mar 2012 17:03:55 -0500 Subject: [PATCH 2/7] First instance of the Sublime Text 2 plugin * Sets up PATH on OS X for subl access if it's not already there * Adds some handle aliases for working with ST2 from the command line More to come! --- .../sublime-text-2/sublime-text-2.plugin.zsh | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 plugins/sublime-text-2/sublime-text-2.plugin.zsh diff --git a/plugins/sublime-text-2/sublime-text-2.plugin.zsh b/plugins/sublime-text-2/sublime-text-2.plugin.zsh new file mode 100644 index 000000000..7e191dcee --- /dev/null +++ b/plugins/sublime-text-2/sublime-text-2.plugin.zsh @@ -0,0 +1,20 @@ +# sublime-text-2.plugin.zsh +# +# An oh-my-zsh plugin for Sublime Text 2 +# Primarily targetted at OS X ST2 users but this might work for +# Linux as well. +# +SUBL=`which subl` +if [[ $SUBL == 'subl not found' ]] ; then + if [[ `uname` == 'Darwin' ]] ; then + if [ -d /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin ] ; then + export PATH=/Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin:${PATH} + fi + if [ -d ~/Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin ] ; then + export PATH=~/Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin;${PATH} + fi + fi +fi + +alias st='subl' +alias stzsh='subl ~/.zshrc' \ No newline at end of file From f19f41893e62eca86cd6a06ca1e75c423f25de62 Mon Sep 17 00:00:00 2001 From: Ian Chesal Date: Wed, 7 Mar 2012 23:25:43 -0500 Subject: [PATCH 3/7] Keep my own zshrc file with my fork of the oh-my-zsh repository Lets me keep my zshrc file in sync between different machines. To deploy: ln -s ~/code/oh-my-zsh/my.zshrc ~/.zshrc If oh-my-zsh every gets tricksy with it's .zshrc templating and functions I'll have to rethink this approach. --- my.zshrc | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 my.zshrc diff --git a/my.zshrc b/my.zshrc new file mode 100644 index 000000000..a69318bdc --- /dev/null +++ b/my.zshrc @@ -0,0 +1,37 @@ +# Path to your oh-my-zsh configuration. +ZSH=$HOME/.oh-my-zsh + +# Set name of the theme to load. +# Look in ~/.oh-my-zsh/themes/ +# Optionally, if you set this to "random", it'll load a random theme each +# time that oh-my-zsh is loaded. +ZSH_THEME="frisk" + +# Example aliases +alias zshconfig="subl ~/code/oh-my-zsh/my.zshrc" +alias ohmyzsh="subl ~/code/oh-my-zsh" + +# Set to this to use case-sensitive completion +# CASE_SENSITIVE="true" + +# Comment this out to disable weekly auto-update checks +DISABLE_AUTO_UPDATE="true" + +# Uncomment following line if you want to disable colors in ls +# DISABLE_LS_COLORS="true" + +# Uncomment following line if you want to disable autosetting terminal title. +# DISABLE_AUTO_TITLE="true" + +# Uncomment following line if you want red dots to be displayed while waiting for completion +# COMPLETION_WAITING_DOTS="true" + +# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*) +# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ +# Example format: plugins=(rails git textmate ruby lighthouse) +plugins=(git brew github history-substring-search osx python perl svn terminalapp textmate axefx sublime-text-2) + +source $ZSH/oh-my-zsh.sh + +# Customize to your needs... +export PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin From f552a93a80af92dd3783b8346af8784ae30c6a55 Mon Sep 17 00:00:00 2001 From: Ian Chesal Date: Wed, 7 Mar 2012 23:27:23 -0500 Subject: [PATCH 4/7] Fixed typo on the PATH setup line --- plugins/sublime-text-2/sublime-text-2.plugin.zsh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/sublime-text-2/sublime-text-2.plugin.zsh b/plugins/sublime-text-2/sublime-text-2.plugin.zsh index 7e191dcee..cd8ef9719 100644 --- a/plugins/sublime-text-2/sublime-text-2.plugin.zsh +++ b/plugins/sublime-text-2/sublime-text-2.plugin.zsh @@ -6,15 +6,15 @@ # SUBL=`which subl` if [[ $SUBL == 'subl not found' ]] ; then - if [[ `uname` == 'Darwin' ]] ; then + if [[ `uname` == 'Darwin' ]] ; then if [ -d /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin ] ; then export PATH=/Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin:${PATH} fi if [ -d ~/Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin ] ; then - export PATH=~/Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin;${PATH} + export PATH=~/Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin:${PATH} fi fi fi alias st='subl' -alias stzsh='subl ~/.zshrc' \ No newline at end of file +alias stzsh='subl ~/.zshrc' From 86d4b88aca3a4dbc3d45c3424bf65d648a92fc8e Mon Sep 17 00:00:00 2001 From: Ian Chesal Date: Thu, 8 Mar 2012 00:06:17 -0500 Subject: [PATCH 5/7] Merge changes from my work machine's .zshrc file --- my.zshrc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/my.zshrc b/my.zshrc index a69318bdc..5546c8467 100644 --- a/my.zshrc +++ b/my.zshrc @@ -1,5 +1,5 @@ # Path to your oh-my-zsh configuration. -ZSH=$HOME/.oh-my-zsh +export ZSH=$HOME/.oh-my-zsh # Set name of the theme to load. # Look in ~/.oh-my-zsh/themes/ @@ -29,9 +29,11 @@ DISABLE_AUTO_UPDATE="true" # Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*) # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ # Example format: plugins=(rails git textmate ruby lighthouse) -plugins=(git brew github history-substring-search osx python perl svn terminalapp textmate axefx sublime-text-2) +plugins=(cpanm git brew github gradle history-substring-search osx python perl svn terminalapp textmate axefx sublime-text-2 mactex) source $ZSH/oh-my-zsh.sh # Customize to your needs... export PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin + +export JAVA_HOME=/Library/Java/Home From 80d6640da06956d5c1e441d0ae2c5dc806c4283d Mon Sep 17 00:00:00 2001 From: Ian Chesal Date: Thu, 8 Mar 2012 00:10:43 -0500 Subject: [PATCH 6/7] Relocate oh-my-zsh to ~/code I don't keep this in ~/.oh-my-zsh. It seems wrong to keep it there. So source all my oh-my-zsh customizations from the spot where I like my source code to live: ~/code. --- my.zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/my.zshrc b/my.zshrc index 5546c8467..d8497ff6b 100644 --- a/my.zshrc +++ b/my.zshrc @@ -1,5 +1,5 @@ # Path to your oh-my-zsh configuration. -export ZSH=$HOME/.oh-my-zsh +export ZSH=$HOME/code/oh-my-zsh # Set name of the theme to load. # Look in ~/.oh-my-zsh/themes/ From e1bb22a1b53183879770567ff3308287f18d3e6b Mon Sep 17 00:00:00 2001 From: Ian Chesal Date: Mon, 12 Mar 2012 09:38:59 -0400 Subject: [PATCH 7/7] Added knife plugin --- my.zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/my.zshrc b/my.zshrc index d8497ff6b..235a403a0 100644 --- a/my.zshrc +++ b/my.zshrc @@ -29,7 +29,7 @@ DISABLE_AUTO_UPDATE="true" # Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*) # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ # Example format: plugins=(rails git textmate ruby lighthouse) -plugins=(cpanm git brew github gradle history-substring-search osx python perl svn terminalapp textmate axefx sublime-text-2 mactex) +plugins=(cpanm git brew github gradle history-substring-search knife osx python perl svn terminalapp textmate axefx sublime-text-2 mactex) source $ZSH/oh-my-zsh.sh