Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # .bashrc
- # DO NOT SWITCH TO ZSH FROM .BASHRC FILE
- #export SHELL=/bin/zsh
- #exec /bin/zsh -l
- # Source global definitions
- # if [ -f /etc/bashrc ]; then
- # . /etc/bashrc
- # fi
- # User specific environment
- # PATH="$HOME/.local/bin:$HOME/bin:$PATH"
- # export PATH
- # Uncomment the following line if you don't like systemctl's auto-paging feature:
- # export SYSTEMD_PAGER=
- #
- # 88
- # ,d 88
- # 88 88
- # 8b,dPPYba, ,adPPYYba, MM88MMM 88,dPPYba, ,adPPYba,
- # 88P' "8a "" `Y8 88 88P' "8a I8[ ""
- # 88 d8 ,adPPPPP88 88 88 88 `"Y8ba,
- # 88b, ,a8" 88, ,88 88, 88 88 aa ]8I
- # 88`YbbdP"' `"8bbdP"Y8 "Y888 88 88 `"YbbdP"'
- # 88
- # 88
- #
- # User specific aliases and functions
- # progs is for any programme that is work-related
- # custom is for anything fun and extra
- # add hdf5
- export LD_LIBRARY_PATH=/scratch/s1/TjonnieLi/gmunu_libs/2020u4/mpiifort/hdf5/lib:$LD_LIBRARY_PATH
- # for gmunu
- export GMUNU_DIR=$HOME/progs/gmunu
- export PATH=$HOME/miniconda3/bin:$PATH:$HOME/progs/gmunu:$HOME/progs/gmunu/tools:$HOME/custom/junest/bin:$HOME/.junest/usr/bin
- # :/opt/share/anaconda/3-2018.12/bin
- export PYTHONPATH=$GMUNU_DIR/tools/python:$PYTHONPATH
- export PYTHONPATH=$HOME/bin/python:$PYTHONPATH
- export PATH=$PYTHONPATH:$PATH
- export RUNS=/scratch/s1/TjonnieLi/lii/simulations/runs
- export PROFILES=/scratch/s1/TjonnieLi/lii/simulations/initial_profiles
- export LII=/scratch/s1/TjonnieLi/lii
- export PRJ=/lustre/project/TjonnieLi/lii/runs
- export TESTS=$GMUNU_DIR/tests
- export GRHD=$TESTS/grhd
- export GRMHD=$TESTS/grmhd
- export NS2D=$GRHD/neutron_star_cylindrical_2D
- export FOCUS=$GRMHD/mag_neutron_star_cylindrical_2D
- export OUTPUT=$FOCUS/outputruns
- export XNS=$HOME/progs/xns
- export MESASDK_ROOT=/users/s1155155707/custom/mesasdk
- # 88
- # 88
- # 88
- # ,adPPYba, ,adPPYba, 88 ,adPPYba, 88 88 8b,dPPYba, ,adPPYba,
- # a8" "" a8" "8a 88 a8" "8a 88 88 88P' "Y8 I8[ ""
- # 8b 8b d8 88 8b d8 88 88 88 `"Y8ba,
- # "8a, ,aa "8a, ,a8" 88 "8a, ,a8" "8a, ,a88 88 aa ]8I
- # `"Ybbd8"' `"YbbdP"' 88 `"YbbdP"' `"YbbdP'Y8 88 `"YbbdP"'
- #
- # ls colours
- alias ls='ls --color'
- LS_COLORS="di=1;36:ex=1;31:fi=0:ln=35:*.log=1;32:*.pdf=35:*.png=35:*.py=33:*.par=35:*.sh=3;35:*.t=34:*.rpm=90:*.tar=1;31"
- export LS_COLORS
- # ad88 88
- # d8" ,d ""
- # 88 88
- # MM88MMM 88 88 8b,dPPYba, ,adPPYba, MM88MMM 88 ,adPPYba, 8b,dPPYba, ,adPPYba,
- # 88 88 88 88P' `"8a a8" "" 88 88 a8" "8a 88P' `"8a I8[ ""
- # 88 88 88 88 88 8b 88 88 8b d8 88 88 `"Y8ba,
- # 88 "8a, ,a88 88 88 "8a, ,aa 88, 88 "8a, ,a8" 88 88 aa ]8I
- # 88 `"YbbdP'Y8 88 88 `"Ybbd8"' "Y888 88 `"YbbdP"' 88 88 `"YbbdP"'
- # exec $HOME/bin/zsh -l
- # autojump, "j"
- [[ -s /users/s1155155707/.autojump/etc/profile.d/autojump.sh ]] && source /users/s1155155707/.autojump/etc/profile.d/autojump.sh
- # custom commands
- # function GMUNU() {
- # conda activate gmunu
- # }
- function CHECK() {
- subl mod_usr.t para.par $(basename ${PWD%/*})_${PWD##*/}.sh
- }
- function DOFFT() {
- python extract_gw.py && python plot_gw.py && python extract_point.py && python fft_rho_c.py && python plot_combine.py && imgcat *.png
- }
- function ANIMATE() {
- python animate_B.py && python animate_Rho.py
- }
- function DOANALYSIS(){
- zsh $RUNS/analysis.sh
- }
- function PULLW() {
- scp -r -P 1922 liiyung.yeow@tgfli-s0.phy.cuhk.edu.hk:$1 $2
- }
- function PUSHW() {
- scp -r -P 1922 $1 liiyung.yeow@tgfli-s0.phy.cuhk.edu.hk:$2
- }
- function sq() {
- squeue
- }
- function SANDBOX() {
- ssh -R 52698:localhost:52698 -Y sandbox
- }
- function pp() {
- conda deactivate && conda activate postprocessing
- }
- alias sl='SLURM_TIME_FORMAT="%d %H:%M:%S" sacct -X --format=JobID%9,JobName%16,Priority%4,Submit%12,Start%12,Elapsed,NCPU%5,CPUTime,ExitCode,State'
- # alias zsh='zsh & '
- alias conda='$HOME/miniconda3/bin/conda'
- # for gmunu
- module load intel/2020u4
- # module load python/3.6
- # for xns with MESA
- module load perl/5.26.2
- module load zlib/1.2.11
- # source /lustre/project/TjonnieLi/lii/miniconda3/bin
- # source /lustre/project/TjonnieLi/lii/miniconda3/bin/activate
- # source /opt/share/anaconda/3-2018.12/bin/activate
- # source /opt/share/anaconda/3-2018.12/condabin/conda
- # source /project/TjonnieLi/share/anaconda3/condabin/conda
- # source $HOME/custom/envs/python36/bin/activate # commented out by conda initialize
- source $MESASDK_ROOT/bin/mesasdk_init.sh
- # zsh
- # experimental
- # CUSTOM_PREFIX='❯'
- # PS1=$'\x1b[33;1;3m$(basename "$CONDA_PREFIX") \x1b[31;1m$CUSTOM_PREFIX \x1b[0m'
- # PS1=$'\x1b[31;1m$CUSTOM_PREFIX \x1b[0m'
- # # >>> conda initialize >>>
- # # !! Contents within this block are managed by 'conda init' !!
- # __conda_setup="$('/opt/share/intel/2020u4/intelpython3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
- # if [ $? -eq 0 ]; then
- # eval "$__conda_setup"
- # else
- # if [ -f "/opt/share/intel/2020u4/intelpython3/etc/profile.d/conda.sh" ]; then
- # . "/opt/share/intel/2020u4/intelpython3/etc/profile.d/conda.sh"
- # else
- # export PATH="/opt/share/intel/2020u4/intelpython3/bin:$PATH"
- # fi
- # fi
- # unset __conda_setup
- # # <<< conda initialize <<<
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement