-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.aliases
More file actions
69 lines (61 loc) · 2.32 KB
/
.aliases
File metadata and controls
69 lines (61 loc) · 2.32 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# Shortcuts for various work-related programs and environments
# Load machine-specific locations
source "${HOME}/.locations"
# Shortcuts for common actions and scripts
alias beep="echo -e '\a'"
alias sync-usb="unison -fat -rsrc false $SYNC_FOLDER/ $USB_FOLDER/"
alias git-check="PYENV_VERSION=scripts python $SCRIPTS_FOLDER/git_check.py ."
alias git-check-all="PYENV_VERSION=scripts python $SCRIPTS_FOLDER/git_check.py"
alias pn="PYENV_VERSION=scripts python $SCRIPTS_FOLDER/process_notebooks.py"
alias fetch-input='
for branch in $(git for-each-ref --format "%(refname:short)" refs/heads/input/)
do
git fetch origin $branch:$branch
done'
alias push-input='
for branch in $(git for-each-ref --format "%(refname:short)" refs/heads/input/)
do
git switch $branch
git push
done'
alias reset-input='
for branch in $(git for-each-ref --format "%(refname:short)" refs/heads/input/)
do
git switch $branch
git reset --hard origin/$branch
done'
# Load certain environments (machine specific)
if [[ "$(uname)" == "Darwin" ]]; then
computer_name=$(scutil --get ComputerName)
else
computer_name=$(hostname)
fi
case ${computer_name} in
"Matt’s MacBook Pro"|"MattBookPro"|"MattBookPro.local")
;;
"Farrah’s MacBook Pro"|"FarrahBook"|"FarrahBook.local")
alias load-root="source /usr/local/bin/thisroot.sh"
alias load-geant4="source /usr/local/bin/geant4.sh"
alias load-opal="source /opt/OPAL-1.4.0-1/etc/profile.d/opal.sh"
;;
"MJEaston")
alias load-root="source /opt/root/bin/thisroot.sh"
alias load-geant4="source /usr/local/bin/geant4.sh"
alias load-opal="source /opt/OPAL-2.0.0rc2/etc/profile.d/opal.sh"
;;
"ubuntu42")
alias load-root="source ~/Software/ROOT/bin/thisroot.sh"
;;
esac
# Shortcuts for Impact-T
alias ImpactGUI="PYENV_VERSION=impactgui python $CODE_FOLDER/Impact/GUI/ImpactGUI.py"
alias impactgui="PYENV_VERSION=impactgui python $CODE_FOLDER/Impact/GUI/ImpactGUI.py"
# Shortcuts for Reproducible
alias reproduce="PYENV_VERSION=reproducible python $CODE_FOLDER/Reproducible/reproduce"
# Shortcut to run_batch.py
alias run_batch="PYENV_VERSION=scripts python $SCRIPTS_FOLDER/run_batch.py"
# Shortcuts for BDSIM
alias load-bdsim="source $SCRIPTS_FOLDER/bdsim.sh"
# Settings for EPOCH
export COMPILER=gfortran
export MPIF90=mpifort