diff --git a/my.zshrc b/my.zshrc new file mode 100644 index 000000000..235a403a0 --- /dev/null +++ b/my.zshrc @@ -0,0 +1,39 @@ +# Path to your oh-my-zsh configuration. +export ZSH=$HOME/code/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=(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 + +# Customize to your needs... +export PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin + +export JAVA_HOME=/Library/Java/Home 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 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..cd8ef9719 --- /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'