2012-01-31 12:20:38 +08:00
|
|
|
# --------------------------------
|
|
|
|
#
|
|
|
|
# DO NOT EDIT THIS FILE.
|
|
|
|
# If you want to make changes, do so in the custom/zsh directory.
|
|
|
|
# Fork and send pull requests to add features and fix bugs. Thanks!
|
|
|
|
#
|
|
|
|
# ================================
|
|
|
|
|
|
|
|
# Don't change. The following determines where YADR is installed.
|
|
|
|
yadr=`find -L ~ -type file -maxdepth 2 -name .yadr | head | sed 's:\.yadr\/::'`
|
|
|
|
|
2012-01-25 15:04:37 +08:00
|
|
|
# Source oh-my-zsh if it is installed.
|
|
|
|
if [[ -d $HOME/.oh-my-zsh ]]; then
|
|
|
|
# Path to your oh-my-zsh configuration.
|
|
|
|
ZSH=$HOME/.oh-my-zsh
|
|
|
|
|
|
|
|
# Set name of the theme to load.
|
|
|
|
ZSH_THEME="skwp"
|
|
|
|
|
|
|
|
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
|
|
|
|
# Example format: plugins=(rails git textmate ruby lighthouse)
|
2012-04-15 07:40:54 +08:00
|
|
|
plugins=(vi-mode rvm ruby bundler zsh-syntax-highlighting history-substring-search)
|
2012-01-25 15:04:37 +08:00
|
|
|
|
2012-01-31 12:20:38 +08:00
|
|
|
# source every zsh file in user's custom/zsh/before. This is useful for setting theme and plugins.
|
2012-04-06 02:49:43 +08:00
|
|
|
if [[ -d $yadr/custom/zsh/before ]]; then
|
|
|
|
for config_file ($yadr/custom/zsh/before/*) source $config_file
|
2012-01-31 12:20:38 +08:00
|
|
|
fi
|
|
|
|
|
Support for @sorin-ionescu rewrite of oh-my-zsh
Sorin's OMZ rewrite is a bit nicer, as it's written in more
native style ZSH, doesn't do auto updates, and incorporates
many bugfixes, and is more actively maintained than Robby's branch.
For now, YADR supports both, so if you want to try out the sorin
branch, go to sorin-ionescu/oh-my-zsh, install it, and rerun
the YADR installer so that the skwp theme is installed for you.
If you want to have them side by side for comparison, rename the
old robby one to ~/.oh-my-zsh.robby or similar, so you can toggle
back and forth through renames, or symlinks.
2012-04-24 01:32:10 +08:00
|
|
|
# Figure out if we have Robby's or Sorin's Oh-my-zsh
|
|
|
|
if [[ -f $ZSH/oh-my-zsh.sh ]]; then
|
|
|
|
source $ZSH/oh-my-zsh.sh # OMZ Robby Russell (https://github.com/robbyrussell/oh-my-zsh)
|
|
|
|
else
|
|
|
|
source $yadr/zsh/omz-sorin/omz-sorin.zsh # OMZ Sorin Ionescu (https://github.com/sorin-ionescu/oh-my-zsh)
|
|
|
|
fi
|
2012-01-25 15:04:37 +08:00
|
|
|
fi
|
|
|
|
|
2011-11-23 09:02:36 +08:00
|
|
|
# Configuration
|
2012-01-31 12:46:41 +08:00
|
|
|
for config_file ($yadr/zsh/*.zsh) source $config_file
|
2011-12-07 13:57:45 +08:00
|
|
|
|
2012-01-31 12:20:38 +08:00
|
|
|
# ------------------
|
|
|
|
# zsh/after
|
|
|
|
# ==================
|
|
|
|
# source every zsh file in user's custom/zsh/after.
|
2012-04-06 02:49:43 +08:00
|
|
|
if [[ -d $yadr/custom/zsh/after ]]; then
|
|
|
|
for config_file ($yadr/custom/zsh/after/*) source $config_file
|
2012-01-31 12:20:38 +08:00
|
|
|
fi
|
2011-11-23 09:02:36 +08:00
|
|
|
|
2012-01-31 12:20:38 +08:00
|
|
|
# Put secret configuration settings in ~/.secrets
|
|
|
|
if [[ -a ~/.secrets ]] then
|
|
|
|
source ~/.secrets
|
|
|
|
fi
|