-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
47 lines (36 loc) · 993 Bytes
/
.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
export ZSH=/Users/evgenii.molov/.oh-my-zsh
ZSH_THEME="robbyrussell"
HIST_STAMPS="dd.mm.yyyy"
DEFAULT_USER=dick.dickson
#https://github.com/robbyrussell/oh-my-zsh/wiki/Plugin:git
#https://github.com/robbyrussell/oh-my-zsh/wiki/Plugins#osx
plugins=(
git
osx
)
# check some hits here: https://gist.github.com/kevin-smets/8568070
############################
#### alias block ###########
alias ..='cd ..'
alias chmod_files='find -maxdepth 10 -type f -exec chmod 644 {} \;'
alias chmod_folders='find -maxdepth 10 -type d -exec chmod 755 {} \;'
alias ls="ls -haltGp"
alias ports="sudo lsof -iTCP -sTCP:LISTEN -n -P"
# run as `del_recursive folderName`
delRecursive() {
find . | grep '$1' | xargs rm
}
# run as `process nginx`
process() {
ps -ef | grep $1
}
# run as `findContent text [directory]`
findContent() {
if [ $2 -eq 0 ] ; then
$2 = '.'
fi
grep -rnw $2 -e '$1'
}
############################
#### end of alias block ####
source $ZSH/oh-my-zsh.sh