comparison .bashrc @ 112:bcea0410143c

(none)
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Mon, 26 Apr 2021 17:17:38 +0000
parents 8fb11e337e23
children 9de06ae73372
comparison
equal deleted inserted replaced
111:3119bca71181 112:bcea0410143c
1 # .bashrc 1 # .bashrc
2 2
3 export G=${HOME}/gentoo
3 # Uncomment the following line if you don't like systemctl's auto-paging feature: 4 # Uncomment the following line if you don't like systemctl's auto-paging feature:
4 # export SYSTEMD_PAGER= 5 # export SYSTEMD_PAGER=
5 6
6 if [ $SHELL = "/bin/bash" ] 7 if [ $SHELL = "/bin/bash" ]
7 then 8 then
9 # Vanilla Cirrus login
8 # Source global definitions 10 # Source global definitions
9 if [ -f /etc/bashrc ]; then 11 if [ -f /etc/bashrc ]; then
10 . /etc/bashrc 12 . /etc/bashrc
11 fi 13 fi
12 14
24 # export HISTSIZE=3000 [readonly on Cirrus :-[ 26 # export HISTSIZE=3000 [readonly on Cirrus :-[
25 export HISTFILESIZE=6000 27 export HISTFILESIZE=6000
26 fi 28 fi
27 29
28 module load gcc # assumed by Prefix 30 module load gcc # assumed by Prefix
31 module load gnu-parallel
29 32
30 export PYTHONPATH=$HOME/lib/python3.6/site-packages 33 export PYTHONPATH=$HOME/lib/python3.6/site-packages
31 34
32 PATH="/lustre/home/dc007/hst/lib/perl5/bin${PATH:+:${PATH}}"; export PATH; 35 PATH="/lustre/home/dc007/hst/lib/perl5/bin${PATH:+:${PATH}}"; export PATH;
33 PERL5LIB="/lustre/home/dc007/hst/lib/perl5/lib/perl5${PERL5LIB:+:${PERL5LIB}}"; export PERL5LIB; 36 PERL5LIB="/lustre/home/dc007/hst/lib/perl5/lib/perl5${PERL5LIB:+:${PERL5LIB}}"; export PERL5LIB;
38 export ANT_HOME=$HOME/src/apache-ant-1.10.7 41 export ANT_HOME=$HOME/src/apache-ant-1.10.7
39 export MAVEN_HOME=$HOME/src/apache-maven-3.6.3 42 export MAVEN_HOME=$HOME/src/apache-maven-3.6.3
40 export JAVA_HOME=$HOME/lib/openjdk-8u252-b09 43 export JAVA_HOME=$HOME/lib/openjdk-8u252-b09
41 export PATH=${PATH}:${ANT_HOME}/bin:${MAVEN_HOME}/bin 44 export PATH=${PATH}:${ANT_HOME}/bin:${MAVEN_HOME}/bin
42 45
46 EDITOR=emacs
43 else 47 else
48 # gentoo
44 if [ "$PS1" ]; then 49 if [ "$PS1" ]; then
45 echo "~/.bashrc inside gentoo" 1>&2 50 echo "~/.bashrc inside gentoo" 1>&2
46 PS1='\[\e[1;32m\]\h\[\e[0m\]<\!>: ' 51 PS1='\[\e[1;32m\]\h\[\e[0m\]<\!>: '
47 # Source some global definitions? 52 # Source some global definitions?
48 53
55 if [ "$DISPLAY" ] 60 if [ "$DISPLAY" ]
56 then 61 then
57 xrdb $HOME/.Xresources 62 xrdb $HOME/.Xresources
58 fi 63 fi
59 fi 64 fi
65 EDITOR=xemacs
60 fi 66 fi
61 67
62 # User specific aliases and functions 68 # User specific aliases and functions
63 #module add gnu-parallel 69 #module add gnu-parallel
64 #export N1=rli4n35 70 #export N1=rli4n35
87 n+=int(l) 93 n+=int(l)
88 print(n) 94 print(n)
89 ' 95 '
90 } 96 }
91 97
92 function uz () { unpigz -dp 1 -c "$@" ; } 98 function uz () { $G/usr/bin/igzip -dc "$@" ; }
93 99
94 function typecat () 100 function typecat ()
95 { 101 {
96 tt=$(type $1) 102 tt=$(type $1)
97 case $tt in 103 case $tt in
101 esac 107 esac
102 } 108 }
103 #export HISTSIZE=3000 109 #export HISTSIZE=3000
104 110
105 PATH=$PATH:$HOME/.local/bin:$HOME/bin 111 PATH=$PATH:$HOME/.local/bin:$HOME/bin
106 EDITOR=emacs
107 112
108 export PATH EDITOR PS1 113 export PATH EDITOR PS1 G