forked from sagivmalihi/homedir
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshaliases
69 lines (62 loc) · 2.69 KB
/
.zshaliases
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
alias mv='mv -v'
alias .='source'
alias idle='/home/sagiv/bin/idle.py -s &'
function label () { echo -ne "\x1B]0;$*\a"; }
function say () { echo $* | festival --tts; }
alias local_easy_install="easy_install -d $HOME/work/python -s $HOME/bin"
alias updisp="export DISPLAY=`echo $SSH_CLIENT | awk {'print $1'}`:0.0"
function lsw()
{
ls -lah `which $*`
}
function lw () { less `which $*`; }
function from() { git grep -i --color $1 | grep -oE "from.*" | grep import | sort | uniq ; }
function def() { git grep -i --color $1 | grep -E "(class|def) | grep -v html" ; }
function ss() { ssh deb0$1.att$2.us.intucell.net; }
function ren() { for f in `find . -name '*$1'`; do mv $f `echo $f | sed -e 's/$1/$2/g'` ; done; }
function gdel() { for b in $*; do git push origin :$b ; done;}
alias venv='. /intucell/latest/bin/activate'
alias venv51='. /intucell/5.1.0/bin/activate'
alias class=def
alias title=label
alias grepi='\grep --color'
alias grep='grep -i --color'
alias threads='ps -emo %cpu,pid,tid,user,arg'
alias psgrep='ps -ef | grep'
alias psall='psgrep -E "(mong|zoo|intuc|java|son)" | grep -v vim'
alias psallnum="psall | tr -s ' ' | cut -d ' ' -f 3 | tr '\n' ' '"
alias clnpyc='find . -name "*.pyc" -delete'
alias start='/intucell/latest/bin/son_start --root /intucell/data'
alias run51='make src-install; make src-run'
alias test51='make src-install; make test'
alias run52='make src-install; make src-run data_path=/intucell/data_5_2'
alias test52='make src-install; make test data_path=/intucell/data_5_2'
alias ip='/intucell/latest/bin/ipython'
alias sp='python ~/ishells/with_store.py'
alias cli='/intucell/latest/bin/son_cli'
alias ggi='git grep --color'
alias gg='git grep -i --color'
alias gs='git status'
alias gf='git fetch'
alias gpr='git pull --rebase'
alias gbl='git blame HEAD'
alias gsu='git submodule update --init'
alias grso='git remote show origin'
alias gmine='gb -r | grep -Eo "aviv.*"'
alias gmineline='gmine | tr -s "\n" " "'
unalias gp
# git aliases
alias gc='git checkout'
alias gd='git diff'
alias gl='git log'
alias gb='git branch'
alias glaviv='git log --author="Aviv Shahar"'
alias cdn='cd ~/dev/son5'
alias cdn1='cd ~/dev/son51'
alias cdo='cd ~/dev/son4'
alias cdl='cd /intucell/data_5_2/logs'
alias nosetests='/intucell/latest/bin/son_nosetests'
alias nosecover='nosetests --with-coverage --cover-html --cover-html-dir=/tmp/coverage'
alias nosepudb='nosetests -sx --pudb-failure --pudb'
alias crmongo1="curl -H 'Content-type: application/json' -X POST -d '[{"server_id":"1", "port":30000}]' http://localhost:5000/api/v1/system/store/configs/"
alias crmongo2="curl -H 'Content-type: application/json' -X POST -d '{"port": 22000, "role": "master"}' http://localhost:5000/api/v1/system/store/region/default/default1/1/"