Created
December 30, 2011 09:59
-
-
Save dartov/1539093 to your computer and use it in GitHub Desktop.
my zshrc with oh-my-zsh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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="juanghurtado" | |
# 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) | |
os=`uname -s` | |
if [ $os = "Darwin" ]; then | |
os_plugins=(osx brew terminalapp) | |
function console () { | |
if [[ $# > 0 ]]; then | |
query=$(echo "$*"|tr -s ' ' '|') | |
tail -f /var/log/system.log|grep -i --color=auto -E "$query" | |
else | |
tail -f /var/log/system.log | |
fi | |
} | |
alias dalog="~/bin/logtodayone.rb" | |
elif [ $os = "Linux" ]; then | |
os_plugins=(archlinux) | |
else | |
echo "Where the hell am I running?" | |
fi | |
plugins=(git github lein compleat gem $os_plugins) | |
source $ZSH/oh-my-zsh.sh | |
# Customize to your needs... | |
export PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/X11/bin:/opt/java/bin:~/bin | |
if (( $+commands[subl] )) && [ ! -s $DISPLAY ] ; then | |
export EDITOR='subl -w' | |
alias slt="subl ." | |
alias zshconfig="subl ~/.zshrc" | |
alias ohmyzsh="subl ~/.oh-my-zsh" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment