| ... |
... |
@@ -1,14 +1,15 @@
|
|
1 |
1 |
# Title: .bash_profile
|
|
2 |
2 |
# Author: Frédéric CHEVALIER <f15.chevalier@gmail.com>
|
|
3 |
|
-# Version: 3.0
|
|
|
3 |
+# Version: 3.1
|
|
4 |
4 |
# Created in: 2012-05-25
|
|
5 |
|
-# Modified in: 2020-03-01
|
|
|
5 |
+# Modified in: 2021-05-19
|
|
6 |
6 |
|
|
7 |
7 |
|
|
8 |
8 |
#==========#
|
|
9 |
9 |
# Versions #
|
|
10 |
10 |
#==========#
|
|
11 |
11 |
|
|
|
12 |
+# v3.1 - 2021-05-19: updates related to severs and SGE config changes (e.g., queue) / new env variable added
|
|
12 |
13 |
# v3.0 - 2020-03-01: Linuxbrew added / Miniconda added / some Python env variables removed / R env variables removed / PATH setup improved / misc updates
|
|
13 |
14 |
# v2.3 - 2019-03-10: alias updated / R hack for medusa2 added / no ssh key usage or storage for heron
|
|
14 |
15 |
# v2.2 - 2017-04-23: server name updated / SSH connection through screen improved / welcome message improved
|
| ... |
... |
@@ -48,13 +49,12 @@
|
|
48 |
49 |
|
|
49 |
50 |
alias pqsub='qsub -V -cwd -o $HOME/status -j y -r y -S /bin/bash'
|
|
50 |
51 |
alias pqsubR='qsub -V -cwd -o $HOME/status -j y -r y -S $(which Rscript)'
|
|
51 |
|
-alias pqrsh='qrsh -V -cwd -pty y bash -li'
|
|
|
52 |
+alias pqrsh='qrsh -V -cwd -q interactive.q -pty y bash -li'
|
|
52 |
53 |
alias plocate='locate -d "$mlocate_db"'
|
|
53 |
54 |
alias xterm='xterm -bg black -fg white -rightbar -geometry 200x35'
|
|
54 |
55 |
|
|
55 |
56 |
[[ $HOSTNAME =~ heron* ]] && alias ssh="ssh -o PreferredAuthentications=password -o PubkeyAuthentication=no"
|
|
56 |
|
-alias medusa2='ssh medusa2'
|
|
57 |
|
-alias perseus='ssh perseus'
|
|
|
57 |
+alias zeus='ssh zeus'
|
|
58 |
58 |
alias mendel='ssh mendel'
|
|
59 |
59 |
alias crow='ssh crow'
|
|
60 |
60 |
alias bulmer='ssh bulmer'
|
| ... |
... |
@@ -86,27 +86,18 @@ bind 'set show-all-if-unmodified off'
|
|
86 |
86 |
# Paths #
|
|
87 |
87 |
#-------#
|
|
88 |
88 |
|
|
|
89 |
+# Package config
|
|
|
90 |
+export PKG_CONFIG_PATH=$(/usr/bin/pkg-config --variable pc_path pkg-config)
|
|
|
91 |
+
|
|
89 |
92 |
# Path variable
|
|
90 |
|
-[[ $SHLVL -eq 1 ]] && export PATH=$HOME/local/bin:$HOME/local/share:$HOME/local/usr/local/bin:$PATH # Personal path
|
|
|
93 |
+[[ $SHLVL -eq 1 ]] && export PATH=$HOME/local/bin:$HOME/local/share:$HOME/local/usr/local/bin:${PATH:+:$PATH} # Personal path
|
|
91 |
94 |
|
|
92 |
95 |
# Linuxbrew
|
|
93 |
96 |
[[ $SHLVL -eq 1 && -d "$HOME/.linuxbrew" ]] && eval $("$HOME/.linuxbrew/bin/brew" shellenv)
|
|
94 |
97 |
|
|
95 |
98 |
# Use of personal /lib* if recent OS
|
|
96 |
99 |
# Location of bamtools lib (source: http://www.vcru.wisc.edu/simonlab/bioinformatics/programs/install/bamtools.htm)
|
|
97 |
|
-export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$HOME/local/lib:$HOME/local/lib64"
|
|
98 |
|
-
|
|
99 |
|
-# Special paths for perseus, medusa and nodes
|
|
100 |
|
-if [[ $HOSTNAME =~ perseus* || $HOSTNAME =~ medusa* || $HOSTNAME =~ compute.* ]]
|
|
101 |
|
-then
|
|
102 |
|
- # System path
|
|
103 |
|
- export PATH=$PATH:/opt/openmpi/bin:/opt/bio/ncbi/bin:/opt/bio/mpiblast/bin:/opt/bio/hmmer/bin:/opt/bio/EMBOSS/bin:/opt/bio/clustalw/bin:/opt/bio/tcoffee/bin:/opt/bio/phylip/exe:/opt/bio/mrbayes:/opt/bio/fasta:/opt/bio/glimmer/bin:/opt/bio/glimmer/scripts:/opt/bio/gromacs/bin:/opt/bio/gmap/bin:/opt/bio/tigr/bin:/opt/bio/autodocksuite/bin:/opt/bio/wgs/bin:/opt/eclipse:/opt/ganglia/bin:/opt/ganglia/sbin:/opt/rocks/bin:/opt/rocks/sbin:/opt/condor/bin:/opt/condor/sbin:/opt/gridengine/bin/lx26-amd64:/usr/bin:/usr/local/bin:/bin:/usr/java/latest/bin
|
|
104 |
|
- # Grid Engine path
|
|
105 |
|
- export PATH=$PATH:/opt/gridengine/bin/linux-x64
|
|
106 |
|
- # R
|
|
107 |
|
- echo -e "\n\e[33mWarning:\e[00m Hard alias for R. If not needed, please edit .bash_profile.\n"
|
|
108 |
|
- alias R="$HOME/local/pckg/R-3.3.1/bin/R"
|
|
109 |
|
-fi
|
|
|
100 |
+export LD_LIBRARY_PATH="${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}$HOME/local/lib:$HOME/local/lib64"
|
|
110 |
101 |
|
|
111 |
102 |
# Perl
|
|
112 |
103 |
export PERL5LIB=~/local/lib/perl5/site_perl/5.18.2/x86_64-linux/auto:~/local/lib/perl5/5.18.2:~/local/lib/perl5/site_perl:~/local/lib/perl5/site_perl/5.18.2:~/local/lib/perl5/site_perl/5.18.2/x86_64-linux:~/local/lib/perl5/5.18.2/x86_64-linux:/usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi:/usr/lib/perl5/site_perl/5.8.8:/usr/lib/perl5/site_perl:/usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi:/usr/lib/perl5/vendor_perl/5.8.8:/usr/lib/perl5/vendor_perl:/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi:/usr/lib/perl5/5.8.8
|
| ... |
... |
@@ -173,7 +164,7 @@ fi
|
|
173 |
164 |
|
|
174 |
165 |
# Display forwarding
|
|
175 |
166 |
# dependency: proxy-dsiplay
|
|
176 |
|
-if [[ ! ($HOSTNAME =~ heron* || $HOSTNAME =~ perseus* || $HOSTNAME =~ medusa* || $HOSTNAME =~ compute.*) && -n "$DISPLAY" && $(which proxy-display &> /dev/null; echo $?) == 0 ]]
|
|
|
167 |
+if [[ ! ($HOSTNAME =~ heron* || $HOSTNAME =~ zeus* || $HOSTNAME =~ compute.*) && -n "$DISPLAY" && $(which proxy-display &> /dev/null; echo $?) == 0 ]]
|
|
177 |
168 |
then
|
|
178 |
169 |
proxy-display :99
|
|
179 |
170 |
fi
|
| ... |
... |
@@ -219,7 +210,7 @@ fi
|
|
219 |
210 |
# Info on disk space and cores
|
|
220 |
211 |
if [[ ! ($HOSTNAME =~ heron* || $HOSTNAME =~ compute.*) && (-z $LC_STY || $LC_STY != 1) ]]
|
|
221 |
212 |
then
|
|
222 |
|
- mydisk="/master /data"
|
|
|
213 |
+ mydisk="/master"
|
|
223 |
214 |
echo ""
|
|
224 |
215 |
for i in $mydisk
|
|
225 |
216 |
do
|
| ... |
... |
@@ -228,7 +219,7 @@ then
|
|
228 |
219 |
done
|
|
229 |
220 |
echo ""
|
|
230 |
221 |
|
|
231 |
|
- if [[ ($name == "perseus" || $name == "medusa2") && (-z $LC_STY || $LC_STY != 1) ]]
|
|
|
222 |
+ if [[ ($name == "zeus") && (-z $LC_STY || $LC_STY != 1) ]]
|
|
232 |
223 |
then
|
|
233 |
224 |
echo -e "\033[33mCores available:\033[00m\n"
|
|
234 |
225 |
qstat -g c
|