-
Notifications
You must be signed in to change notification settings - Fork 10
/
.bashrc
66 lines (48 loc) · 1.42 KB
/
.bashrc
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
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# User specific aliases and functions
#########################################################
# 2020.5.10
########################################################
# picocom ic group
########################################################
source /opt/picocom/tools/toolconfigs/toolconfig.sh
if [ -f ~/own.bashrc ]; then
source ~/own.bashrc #Define your own bash settings file and named the file own.bashrc
fi
module use /cad/modulefiles
#=============basic==============
alias rm='rm -i'
alias mv='mv -i'
alias cp='cp -i'
alias sou='source ~/.bashrc'
alias his='history'
alias grep='grep -n --color=auto'
alias du1="du -h --max-depth=1"
alias du2="du -h --max-depth=2"
alias vi='gvim'
alias v='gvim'
alias g='gvim'
alias l='ll -h'
alias ..='cd ..'
alias ...='cd ../..'
alias ....='cd ../../../'
alias .....='cd ../../../../'
#=============function===========
function dun() {
du -h --max-depth=$1;
}
#=============paths==============
alias user='cd /ic/user/`whoami`/'
alias app='cd /ic/app/'
alias work='cd /ic/proj/`whoami`'
alias temp='cd /ic/temp/`whoami`'
alias libs='cd /huaihe/proj/ic/libs'
#=============sos================
export CLIOSOFT_DIR=/cad/clio/sos_7.04.p1_linux64
export PATH=/cad/clio/sos_7.04.p1_linux64/bin:$PATH
export CLIOLMD_LICENSE_FILE=5281@172.16.18.31
#=============lsf================
source /cad/lsf/conf/profile.lsf