-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbashrc_user
More file actions
50 lines (37 loc) · 1.83 KB
/
bashrc_user
File metadata and controls
50 lines (37 loc) · 1.83 KB
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
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# User specific environment
if ! [[ "$PATH" =~ "$HOME/.local/bin:$HOME/bin:" ]]
then
PATH="$HOME/.local/bin:$HOME/bin:$PATH"
fi
PATH="/home/developer/bin:/home/developer/Software/run:/home/developer/Software/bin:/usr/local/bin:$PATH"
export PATH
alias python="/usr/bin/python3.9"
PYTHONPATH="/home/developer/Software/Python:/home/developer/.local/lib/python3.9/site-packages:/usr/local/lib64/python3.9/site-packages"
export PYTHONPATH
# Data for sky background calculator used by rubin_sim package used by ETC
export RUBIN_SIM_DATA_DIR="/data/rubin_sim/"
# Uncomment the following line if you don't like systemctl's auto-paging feature:
# export SYSTEMD_PAGER=
# User specific aliases and functions
#alias ngps-plan="/usr/local/palomar/deployment/NGPS_GUI/ngpsgui.sh PLAN"
alias sourcemacro="source ~/.bashrc"
export XPA_NSUSERS="*" # Allow this user's XPA to access ds9 windows from any other user
# Stop desktop windows from resizing (only if display is available)
if [ -n "$DISPLAY" ]; then
gsettings set org.gnome.mutter edge-tiling false
fi
# FITS files
alias lastfits='ls *.fits -Art | tail -n 1'
#alias lastfits2='ls *.fits -Art | tail -n 2 | head -n 1' # next to last
alias ds9last='/home/developer/Software/Python/FITS_tools/ds9last.sh 1'
alias ds9last1='/home/developer/Software/Python/FITS_tools/ds9last.sh 1'
alias ds9last2='/home/developer/Software/Python/FITS_tools/ds9last.sh 2'
#alias ds9lastGo='/home/developer/Software/Python/FITS_tools/ds9-script.py `lastfits`'
#alias ds9last2='/home/developer/Software/Python/FITS_tools/ds9-script.py `lastfits2`'
#alias ds9last='lf=`lastfits`; busy=`lsof -w -c camerad | grep $lf | wc -l` ; if [[ $busy -gt 0 ]]; then echo FILE NOT READY!!! SO IMPATIENT! Try ds9last2; fi; ds9lastGo'
#source $HOME/bashrc_dev