-
Notifications
You must be signed in to change notification settings - Fork 1
/
bash_aliases
67 lines (61 loc) · 1.71 KB
/
bash_aliases
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
alias sa='source ~/.bash_aliases'
# Git
alias gst='git status'
alias gsh='git rev-parse HEAD'
alias gsu='git submodule update --init --recursive'
alias gaa='git add --all'
alias gittok='xclip -sel clip < ~/.ssh/gittok'
# Onyx
if [ -d '/mtrsysgwork/yonatanp/onyx/scripts' ]
then
alias sg='source /mtrsysgwork/yonatanp/onyx/scripts/genenv.sh'
else
if [ -d '/auto/mtrsysgwork/yonatanp/onyx/scripts' ]
then
alias sg='source /auto/mtrsysgwork/yonatanp/onyx/scripts/genenv.sh'
fi
fi
alias oa='subl ~/.bash_aliases'
alias ll='ls -ltrh'
alias mkd=func_mkd
alias rmf='rm -rf'
alias -- --='l log.txt'
alias grep='grep -i --color=auto'
func_mkd() {
mkdir $1
cd $1
}
func_tmux_attach() {
tmux attach -t -d $1
}
func_mtrs() {
if [ -d '/mtrsysgwork/yonatanp' ]
then
cd '/mtrsysgwork/yonatanp'
else
if [ -d '/auto/mtrsysgwork/yonatanp' ]
then
cd '/auto/mtrsysgwork/yonatanp'
fi
fi
}
func_eclipse() {
if [ -d '/app/eclipse.neon' ]
then
/app/eclipse.neon/eclipse -clean -vmargs -Xms512m -Xmx3000m &
else
if [ -d '/auto/app/eclipse.neon' ]
then
/auto/app/eclipse.neon/eclipse -clean -vmargs -Xms512m -Xmx3000m &
fi
fi
}
alias eclipse_srv=func_eclipse
alias clean-docker-stopped-containers='docker ps -aq --no-trunc | xargs docker rm'
alias clean-docker-untagged-images='docker images -q --filter dangling=true | xargs docker rmi'
alias tmat=func_tmux_attach
alias mtrs=func_mtrs
alias adb='/builds/yonatanp/adabe/adabe/adabe'
alias adb_flex='adb /mtrsysgwork/yonatanp/adabe/flex_program.adb'
alias adb_phx='adb /mtrsysgwork/yonatanp/adabe/phoenix.adb'
alias adb_cond='adb /mtrsysgwork/yonatanp/adabe/condor.adb'