comparison .bashrc @ 9:05820245a047

work around problem with PROMPT_COMMAND
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Sat, 23 Jul 2022 11:50:02 +0100
parents 763bf32dfb26
children fd9bcd759606
comparison
equal deleted inserted replaced
8:1f17c2a883d1 9:05820245a047
3 # Uncomment the following line if you don't like systemctl's auto-paging feature: 3 # Uncomment the following line if you don't like systemctl's auto-paging feature:
4 # export SYSTEMD_PAGER= 4 # export SYSTEMD_PAGER=
5 5
6 # Login for singularity 6 # Login for singularity
7 # Source global definitions 7 # Source global definitions
8
9 if [ -f /etc/bashrc ]; then
10 # This is protected against running twice...
11 . /etc/bashrc
12 fi
13
14 8
15 savehist () 9 savehist ()
16 { 10 {
17 hc=$(history 1 | tr -d '\n' | cut -d ' ' -f 2); 11 hc=$(history 1 | tr -d '\n' | cut -d ' ' -f 2);
18 if [ $((hc % ${HIST_FREQ-10})) = 0 ]; then 12 if [ $((hc % ${HIST_FREQ-10})) = 0 ]; then
39 export HISTSIZE=3000 33 export HISTSIZE=3000
40 export HISTFILESIZE=6000 34 export HISTFILESIZE=6000
41 export HISTIGNORE='[ ]*:&:[fb]g:exit' 35 export HISTIGNORE='[ ]*:&:[fb]g:exit'
42 fi 36 fi
43 37
44 #export PYTHONPATH=$HOME/lib/python3.6/site-packages 38 EDITOR=xemacs
45
46 PROMPT_COMMAND=prompt
47
48 EDITOR=emacs
49 39
50 PATH=$PATH:$HOME/.local/bin:$HOME/bin 40 PATH=$PATH:$HOME/.local/bin:$HOME/bin
51 41
52 HHOME=/home/dc007/dc007/$(whoami) 42 HHOME=/home/dc007/dc007/$(whoami)
53 43
54 export PATH EDITOR HHOME PROMPT_COMMAND 44 export PATH EDITOR HHOME