2013-06-17 13:08:20 +00:00
|
|
|
export PATH="$PATH:$HOME/.bin/"
|
2013-03-26 04:23:43 +00:00
|
|
|
|
|
|
|
# Only update the path if not running interactively
|
|
|
|
[ -z "$PS1" ] && return
|
2013-07-12 17:19:52 +00:00
|
|
|
#source ~/.starttmux
|
2012-12-02 00:56:57 +00:00
|
|
|
# Path to your oh-my-zsh configuration.
|
|
|
|
ZSH=$HOME/.oh-my-zsh
|
2012-12-01 04:11:06 +00:00
|
|
|
|
2012-12-02 00:56:57 +00:00
|
|
|
# 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="balkian"
|
2012-12-01 04:11:06 +00:00
|
|
|
|
2012-12-02 00:56:57 +00:00
|
|
|
# Example aliases
|
|
|
|
# alias zshconfig="mate ~/.zshrc"
|
|
|
|
# alias ohmyzsh="mate ~/.oh-my-zsh"
|
2012-12-01 04:11:06 +00:00
|
|
|
|
2012-12-02 00:56:57 +00:00
|
|
|
# Set to this to use case-sensitive completion
|
2015-04-13 08:47:46 +00:00
|
|
|
CASE_SENSITIVE="true"
|
2012-12-01 04:11:06 +00:00
|
|
|
|
2012-12-02 00:56:57 +00:00
|
|
|
# Comment this out to disable weekly auto-update checks
|
|
|
|
# DISABLE_AUTO_UPDATE="true"
|
2012-12-01 04:11:06 +00:00
|
|
|
|
2012-12-02 00:56:57 +00:00
|
|
|
# Change this value to set how frequently ZSH updates¬
|
|
|
|
export UPDATE_ZSH_DAYS=13
|
2012-12-01 04:11:06 +00:00
|
|
|
|
2012-12-02 00:56:57 +00:00
|
|
|
# Uncomment following line if you want to disable colors in ls
|
|
|
|
# DISABLE_LS_COLORS="true"
|
2012-12-01 04:11:06 +00:00
|
|
|
|
2012-12-02 00:56:57 +00:00
|
|
|
# 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
|
2015-04-13 08:47:46 +00:00
|
|
|
COMPLETION_WAITING_DOTS="true"
|
2012-12-02 00:56:57 +00:00
|
|
|
|
|
|
|
# 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)
|
2015-04-13 08:47:46 +00:00
|
|
|
plugins=(git gitfast colored-man virtualenvwrapper cp python wd systemadmin pass)
|
2012-12-01 04:11:06 +00:00
|
|
|
|
2012-12-02 00:56:57 +00:00
|
|
|
source $ZSH/oh-my-zsh.sh
|
|
|
|
|
2013-01-04 21:02:55 +00:00
|
|
|
#bindkey "^R" history-incremental-search-backward
|
|
|
|
|
2012-12-02 00:56:57 +00:00
|
|
|
# Customize to your needs...
|
2013-12-18 09:46:01 +00:00
|
|
|
autoload -U zmv
|
|
|
|
alias mmv='noglob zmv -W'
|
2015-02-23 06:07:14 +00:00
|
|
|
alias e='myemacs -nw'
|
2015-03-10 16:30:06 +00:00
|
|
|
alias ew='myemacs -n'
|
2015-04-06 21:35:55 +00:00
|
|
|
export ALTERNATE_EDITOR=/usr/bin/vim EDITOR="vim" VISUAL="vim"
|
2012-12-01 04:11:06 +00:00
|
|
|
|
2015-04-08 23:30:27 +00:00
|
|
|
# Docker goodies
|
|
|
|
alias drm="docker rm"
|
2015-04-13 08:47:46 +00:00
|
|
|
alias drun="docker run"
|
2015-04-08 23:30:27 +00:00
|
|
|
alias drmi="docker rmi"
|
|
|
|
alias dps="docker ps"
|
|
|
|
alias dpi="docker images"
|
|
|
|
function da () {
|
|
|
|
docker start $1 && docker attach $1
|
|
|
|
}
|
|
|
|
function drmia () {
|
|
|
|
docker rmi $(docker images | grep "^<none>" | awk '{print $3}')
|
|
|
|
}
|
|
|
|
function drma () {
|
|
|
|
docker rm $(docker ps -q $*)
|
|
|
|
}
|
|
|
|
function newdev () {
|
|
|
|
docker run -v $PWD:/usr/src/app -t -i --name $1 -h $1 balkian/devmachine
|
|
|
|
}
|
|
|
|
|
2015-04-13 08:47:46 +00:00
|
|
|
_docker # Force the load of autocompletion for docker
|
|
|
|
compdef __docker_containers da
|
|
|
|
compdef __ps drma
|
|
|
|
|
2012-12-30 18:55:14 +00:00
|
|
|
PYTHONSTARTUP=~/.pythonrc.py
|
|
|
|
export PYTHONSTARTUP
|
2013-12-18 09:46:01 +00:00
|
|
|
|
2015-04-13 08:47:46 +00:00
|
|
|
ssh-add -l > /dev/null 2>&1 || alias ssh='ssh-add -l >/dev/null || ssh-add && unalias ssh; ssh'; alias mosh='ssh-add -l >/dev/null || ssh-add && unalias mosh; mosh'
|
2014-03-08 23:24:13 +00:00
|
|
|
|
2013-12-18 09:46:01 +00:00
|
|
|
setopt extended_glob
|
2015-04-13 08:47:46 +00:00
|
|
|
setopt menu_complete
|
2015-04-09 00:42:21 +00:00
|
|
|
|
|
|
|
### Agent forwarding in tmux too
|
|
|
|
if [ ! -z "$SSH_AUTH_SOCK" -a "$SSH_AUTH_SOCK" != "$HOME/.ssh/ssh_auth_sock" ] ; then
|
|
|
|
unlink "$HOME/.ssh/ssh_auth_sock" 2>/dev/null
|
|
|
|
ln -s "$SSH_AUTH_SOCK" "$HOME/.ssh/ssh_auth_sock"
|
|
|
|
export SSH_AUTH_SOCK="$HOME/.ssh/ssh_auth_sock"
|
|
|
|
fi
|