-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
110 lines (90 loc) · 3.8 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
export DOCKER_HOST=tcp://127.0.0.1:2375
export PATH=~/.composer/vendor/bin:~/go/bin:$PATH
export PATH=/home/mwidmann/anaconda2/bin:$PATH
eval `keychain --agents ssh --eval id_rsa id_dsa`
# ssh
export SSH_KEY_PATH="~/.ssh/rsa_id"
export EDITOR=vim
export VISUAL=$EDITOR
export GOPATH="/home/mwidmann/go"
export PHP_IDE_CONFIG="serverName=local"
alias hosts="sudo vim /etc/hosts"
# adds the provided entry to both wsl and windows hosts file
function vhost() {
echo "127.0.0.1 $1" >> /etc/hosts
echo "127.0.0.1 $1" >> /c/Windows/System32/drivers/etc/hosts
}
alias grep='grep --color=auto'
alias zwget='wget --header="accept-encoding: gzip"'
alias mongod='mongod --config /usr/local/etc/mongod.conf'
alias dni_webserver="ssh -ldevel 172.24.1.13"
alias dni_node="ssh -ldevel 172.24.1.12"
alias dni_db="ssh -ldevel 172.24.1.11"
alias dni_redis="ssh -ldevel 172.24.1.10"
# servers
alias tpappsu01='ssh -l devel tpappsu01.tele.net'
alias tpappsu02='ssh -l devel tpappsu02.tele.net'
alias tpappsu03='ssh -l devel tpappsu03.tele.net'
alias tpappsextu01='ssh -l devel tpappsextu01.tele.net'
alias tpdevu02='ssh -l devel tpdevu02.tele.net'
alias vn='ssh -l devel mhvnu01.tele.net'
alias dc='ssh -l digicol 194.183.158.26'
alias dcapps='ssh -ldigicol dc-apps01'
alias epaper=dc
alias nzzstore="ssh -l devel rms-store01.tele.net"
alias rmsaasu01="ssh -l devel rmsaasu01.tele.net"
#alias epapercron="ssh [email protected]"
alias epapercron="ssh [email protected]"
alias gitlab="ssh [email protected]"
alias jenkins="ssh [email protected]"
# nnp
alias nnpstore="ssh -l devel rmnnp-store01.tele.net"
# android debugging
alias debugandroid="adb forward tcp:9222 localabstract:chrome_devtools_remote"
# openshift commandas
alias ocp="oc get projects"
alias ocr="oc get pod|grep Running"
alias ocl="oc logs -f"
oce() {
oc exec -it "$1" bash
}
ovbcc() {
convert -resize x2500 -interlace Plane -quality 90 -density 150 -colorspace sRGB -background "#ffffff" -flatten $1 cpartpage_$2.jpg
jpegoptim -m90 --strip-all --all-progressive cpartpage_$2.jpg
convert -quality 90 -resize x500 cpartpage_$2.jpg cpartpage_$2_lo.jpg
convert -quality 90 -resize x250 cpartpage_$2.jpg cpartpage_$2_small.jpg
}
ovbc() {
convert -resize x2500 -interlace Plane -quality 90 -density 150 -colorspace sRGB -background "#ffffff" -flatten $1 partpage_$2.jpg
jpegoptim -m90 --strip-all --all-progressive partpage_$2.jpg
convert -quality 90 -resize x500 partpage_$2.jpg partpage_$2_lo.jpg
convert -quality 90 -resize x250 partpage_$2.jpg partpage_$2_small.jpg
}
alias weather="curl wttr.in/götzis"
## tmux stuff
alias tmx="tmux new -s"
alias tmxa="tmux attach -t"
alias tmxl="tmux ls"
alias tmxc="vim ~/.tmux.conf"
alias tmxk="tmux kill-session -t"
alias tmxwindows="tmux list-windows"
## tmuxinator
alias tmxn="tmuxinator new"
alias tmxo="tmuxinator open"
alias tmxs="tmuxinator start"
## windows
alias docker-compose="docker-compose.exe"
alias open="cmd.exe /c start"
alias code="/c/Users/mwidmann/AppData/Local/Programs/Microsoft\ VS\ Code/bin/code"
alias start-docker="docker restart webserver_webserver_1 && docker restart webserver_mysql_1"
alias xdbon="sed -i.bak 's/#zend_extension/zend_extension/g' ~/projects/dockerfiles/webserver/php/docker-php-ext-xdebug.ini && docker restart webserver_webserver_1"
alias xdboff="sed -i.bak 's/zend_extension/#zend_extension/g' ~/projects/dockerfiles/webserver/php/docker-php-ext-xdebug.ini && docker exec -it webserver_webserver_1 apachectl graceful"
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" --no-use
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
alias node='unalias node ; unalias npm ; nvm use default ; node $@'
alias npm='unalias node ; unalias npm ; nvm use default ; npm $@'
__git_files () {
_wanted files expl 'local files' _files
}