-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzshrc
136 lines (109 loc) · 4.21 KB
/
zshrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
# 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="blinks"
# ZSH_THEME="random"
# Example aliases
# alias zshconfig="mate ~/.zshrc"
alias unmute="pactl set-sink-mute 0 0"
alias mute="pactl set-sink-mute 0 1"
alias localbstack='java -jar /usr/local/bin/BrowserStackTunnel.jar -f 6UEnhpWM9sCCUiG3pnGx '
alias tmux="TERM=screen-256color-bce tmux"
alias r="rsync -rltD --progress --exclude='*.swp' --exclude='*.bak'"
alias o="xdg-open"
alias g="git"
alias vi="nvim"
alias vim="nvim"
alias phps="psysh"
alias copy="xclip -selection clipboard"
alias CAPSOFF="python -c 'from ctypes import *; X11 = cdll.LoadLibrary(\"libX11.so.6\"); display = X11.XOpenDisplay(None); X11.XkbLockModifiers(display, c_uint(0x0100), c_uint(2), c_uint(0)); X11.XCloseDisplay(display)'"
alias decrypt="openssl rsautl -decrypt -inkey ~/.ssh/id_rsa -in "
function encrypt {
openssl rsautl -encrypt -inkey ~/.ssh/id_rsa -in $1 -out $2
}
alias nmrestart="service network-manager restart"
# projects
alias vac="cd ~/sites/vac"
alias vtfa="cd ~/sites/vtfa"
alias swim="cd ~/sites/swim"
alias cw="cd ~/sites/contentworks"
alias mw="cd ~/sites/moduleworks"
alias spark="cd ~/sites/sparkles"
alias velco="cd ~/sites/velco"
alias smash="cd ~/sites/smash"
alias bull="cd ~/sites/bull"
alias vdw="cd ~/sites/vtdesign"
# symfony
alias sfsch='app/console doctrine:schema:update --dump-sql'
alias sfmig='app/console doctrine:migrations:mig'
alias sfmigdiff='vim $(app/console doctrine:migrations:diff | cut -d"\"" -f2)'
# task warrior
alias tt="task"
alias ttn="task +next"
alias ttv="task proj:vdw"
alias ttc="task proj:champlain"
alias ttp="task proj:personal"
alias tta="task add"
function ttd {
task $1 done
}
function tte {
task $1 edit
}
function ttd {
task $1 done
}
function ttm {
task $1 modify $2
}
alias tm="tmux"
# Set to this to use case-sensitive completion
# CASE_SENSITIVE="true"
# Uncomment this to disable bi-weekly auto-update checks
# DISABLE_AUTO_UPDATE="true"
# Uncomment to change how often before auto-updates occur? (in days)
# export UPDATE_ZSH_DAYS=13
# 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 to disable command autocorrection
DISABLE_CORRECTION="true"
# Uncomment following line if you want red dots to be displayed while waiting for completion
# COMPLETION_WAITING_DOTS="true"
# Uncomment following line if you want to disable marking untracked files under
# VCS as dirty. This makes repository status check for large repositories much,
# much faster.
# DISABLE_UNTRACKED_FILES_DIRTY="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=(git composer symfony2 web-search rand-quote battery ssh-agent tmux colored-man-pages colorize copyfile)
source $ZSH/oh-my-zsh.sh
# Customize to your needs...
export PATH=$PATH:/home/squizztoupe/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/bin/adt-bundle/sdk/platform-tools:/usr/local/bin/adt-bundle/sdk/tools:/usr/local/bin/apache-ant/bin:$HOME/.composer/bin
# Add to python path
export PYTHONPATH=$PYTHONPATH:$HOME/dotfiles/python
export WORKON_HOME=~/.virtualenvs
# export VIRTUALENVWRAPPER_SCRIPT=/usr/local/bin/virtualenvwrapper.sh
function venv() {
if [ -z $VIRTUALENVWRAPPER_PYTHON ]
then
VIRTUALENVWRAPPER=$(locate virtualenvwrapper_lazy.sh)
source $VIRTUALENVWRAPPER
fi
}
VISUAL=vim; export VISUAL
EDITOR=vim; export EDITOR
# When you type a dir name, automatically cd into that dir
setopt autocd
# Enable extended glob behavior
setopt extended_glob
autoload -U zmv
export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting
### Added by the Heroku Toolbelt
export PATH="/usr/local/heroku/bin:$PATH"
export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting