-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bashrc
executable file
·114 lines (88 loc) · 2.98 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
# .bashrc
# source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
export EDITOR=vim
# universal open scripts
export PATH=~/dotfiles/scripts/:$PATH
export PATH=~/bin/:$PATH
# critcel User specific aliases and functions
if [[ `hostname` = critcel* ]] ||
[[ `hostname` = iw* ]] ||
[[ `hostname` = force* ]]; then
SHAREDDIR=/nv/ps1/critcel-project
source ${SHAREDDIR}/grouprc
function qpeekgt() {
${SHAREDDIR}/qpeek ${@}.repace.pace.gatech.edu
}
function qdelgt() {
${SHAREDDIR}/qdel ${@}.repace.pace.gatech.edu
}
function qpeekj() {
qpeekgt -f $myjobid
}
function png2eps() {
CMD=`echo sam2p ${@}.png EPS: ${@}.eps` $CMD
}
function git_diff() {
git diff --no-ext-diff -w "$@" | vim -R -
}
alias penmshfp='penmshxp -msf 4; mkdir -p plots; mv *png plots'
alias wstat='watch -n 1 qstat'
alias qdel='canceljob'
export PATH=/nv/ps1/critcel-project:$PATH
export PATH=/nv/hp16/kmanalo3/phd-bin:$PATH
export GIT_TEMPLATE_DIR=/usr/local/packages/git-1.7.0.5/share/git-core/templates/
export PKG=/nv/hp16/kmanalo3/data/packages
# for serpent
export acelib=/nv/hp16/kmanalo3/data/packages/serpent-757/c757mnyws00/c757mnyws00/xsdata/sss_endfb7u.xsdata
export declib=/nv/hp16/kmanalo3/data/packages/serpent-757/c757mnyws00/c757mnyws00/xsdata/sss_endfb7.dec
export nfylib=/nv/hp16/kmanalo3/data/packages/serpent-757/c757mnyws00/c757mnyws00/xsdata/sss_endfb7.nfy
# go ahead and source ubuntu default bashrc
elif [[ `hostname` == kevin-vbox ]] ; then
source ~/.bashrc.ubuntu
source /opt/intel/composer_xe_2013.3.163/bin/compilervars.sh intel64
# reagan User specific aliases and functions
elif [[ `hostname` = reagan* ]] ; then
# directory support
alias ls='ls --color=auto'
#NOTWORKING eval $(dircolors -b ~/dotfiles/.dircolors)
# DATAPATH for MCNP cross-section data
export DATAPATH
DATAPATH="/home/MCNP_DATA"
PATH=$PATH:/opt/local/bin
# support for nagfor5.3
export NAG_KUSARI_FILE=/usr/local/lib/NAG_Fortran/nag.licence
# supress on host force
elif [[ `hostname` != force* ]]; then
alias ls='ls --group-directories-first --color=auto'
eval $(dircolors -b ~/dotfiles/.dircolors)
fi
# Host-independent aliases
alias vip='vim -p'
alias rm='rm -i'
alias df='df -h'
alias quota='quota -s -u'
alias du='du -h'
alias lls='ls --color=auto -lah'
alias pwd='pwd -P' # I cannot believe I didn't know this
# Host-independent functions
function cd()
{
builtin cd "$*" && ls
}
# ignore duplicates in history
export HISTCONTROL=ignoredups
# tries to keep histories from other sessions -- helpful when using screen
export PROMPT_COMMAND="history -a; history -c; history -r; $PROMPT_COMMAND"
# Increase the stacksize
ulimit -s unlimited
# PATH for MCNP executables
export PATH
PATH=$PATH:/nv/hp17/kmanalo3/data/mcnp6/MCNP_CODE/bin
# Increase the stacksize
ulimit -s unlimited
# DATAPATH for MCNP cross-section data
export DATAPATH
DATAPATH="/nv/hp17/kmanalo3/data/mcnp6/MCNP_DATA"