Created
August 19, 2013 12:36
-
-
Save Otann/6268679 to your computer and use it in GitHub Desktop.
This file contains 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="robbyrussell" | |
DEFAULT_USER="anton" | |
# Example aliases | |
alias zshconfig="subl ~/.zshrc" | |
alias ohmyzsh="subl ~/.oh-my-zsh" | |
# Comment this out to disable weekly auto-update checks | |
# DISABLE_AUTO_UPDATE="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 vagrant virtualenvwrapper) | |
plugins=(git github osx brew python pip autoenv virtualenvwrapper sbt scala ssh-agent cloudapp) | |
source $ZSH/oh-my-zsh.sh | |
############################################ | |
# Customize to your needs... | |
############################################ | |
# fix locale | |
export LC_ALL=en_US.UTF-8 | |
export LANGUAGE=en_US.UTF-8 | |
alias ..="cd .." | |
alias cd..="cd .." | |
alias ll="ls -lF" | |
alias lp="ls -p" | |
alias h=history | |
alias subl="/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl" | |
alias glog="git log --format='%Cgreen%h%Creset %C(cyan)%an%Creset - %s' --graph" | |
alias sbt="nocorrect sbt" | |
alias pip="nocorrect pip" | |
alias pep8="nocorrect pep8" | |
alias vagrant="nocorrect vagrant" | |
alias py3="python3" | |
alias elastic="/Users/anton/Dev/tools/elasticsearch-0.90.2/bin/elasticsearch" | |
# general path munging | |
PATH=${PATH}:~/bin | |
PATH=${PATH}:/usr/local/bin | |
# JRebel path | |
export JREBEL_PATH="/Users/anton/Dev/tools/jrebel/jrebel.jar" | |
# My Own theme | |
if [ $UID -eq 0 ]; then NCOLOR="red"; else NCOLOR="green"; fi | |
local return_code="%(?..%{$fg[red]%}%?✗ %{$reset_color%})" | |
local user_root="%(!.%{$fg_bold[red]%}#.%{$fg_bold[yelow]%}$)%{$reset_color%}" | |
PROMPT='%{$fg_bold[yellow]%}%m : %3~ ${user_root} ' | |
RPROMPT='%{$fg_bold[blue]%}$(git_prompt_info)%{$reset_color%} ${return_code}%{$fg[white]%}%T%{$reset_color%}' | |
ZSH_THEME_GIT_PROMPT_PREFIX="git:(%{$fg[red]%}" | |
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}" | |
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}✗%{$reset_color%}" | |
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})" | |
# fix colors | |
export CLICOLOR=1 | |
export GREP_OPTIONS='--color=auto' | |
export LSCOLORS=Exfxcxdxbxegedabagacad | |
export LS_COLORS='no=00;37:fi=00;37:di=01;36:ln=04;36:pi=33:so=01;35:do=01;35:bd=33;01:cd=33;01:or=31;01:su=37:sg=30:tw=30:ow=34:st=37:ex=01;31:' | |
zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS} | |
case $TERM in | |
xterm*) | |
precmd () {print -Pn "\e]0;%m\a"} | |
;; | |
esac | |
# Activate autoenv | |
source ~/.autoenv/activate.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment