-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbashrc_ihep.sh
51 lines (41 loc) · 1.16 KB
/
bashrc_ihep.sh
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
#!/bin/sh
#--------------------------------------------------
# Prompt Setting
#--------------------------------------------------
HOST=$(hostname | cut -d. -f1)
if [ "$PS1" ]; then
PS1="\u_$HOST$ "
ignoreeof=1
fi
#--------------------------------------------------
# General Aliases
#--------------------------------------------------
alias ls="ls -h --color"
alias lsd="ls -d */"
alias l="ls"
alias ll="ls -lh"
alias p="pwd"
alias rm~="rm *~"
alias rl="root -l"
alias qs="qstat -u shixin"
#--------------------------------------------------
# General ENV
#--------------------------------------------------
export CVS_RSH=ssh
export CVSEDITOR=vim
export PATH=$HOME/local/bin:$PATH
export SINGULARITY_CACHEDIR=$HOME/.singularity
unset SSH_ASKPASS
#--------------------------------------------------
# Functions
#--------------------------------------------------
batch_kill() {
pgrep $1 | awk '{print "kill -9 "$1}' | sh
}
setpyroot() {
echo "Setting up python 2.7.11 and ROOT 5.34..."
export PYTHONPATH=$HOME/local/lib
export LD_LIBRARY_PATH=$HOME/local/lib
export PATH=$HOME/local/root/bin:$PATH
source $HOME/local/root/bin/thisroot.sh
}