-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzshrc
147 lines (115 loc) · 4.26 KB
/
zshrc
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
alias l="ls -lrt"
alias ll="ls -alF"
alias ls='ls -GFh'
alias tclsh='rlwrap tclsh'
alias vmd='/Applications/VMD\ 1.9.4a57-x86_64-Rev12.app/Contents/Resources/VMD.app/Contents/MacOS/VMD'
alias fftool="/Users/marcodigennaro/WORK/external_packages/fftool/fftool"
alias goto_work='cd /Users/marcodigennaro/WORK'
alias mypytest='pytest -skv --cov --continue-on-collection-errors --html=report.html'
alias TME_WS='ssh -XY tme_workstation'
alias TME_CLUSTER='ssh 10.100.192.2 -Yl mdi0316'
function jnb() {
conda_start
conda activate perso
jupyter-lab --NotebookApp.password=""
}
function goto_elia() {
cd /Users/marcodigennaro/Desktop/APPLICATIONS/2024/35_ELIA
}
function goto_kubas() {
conda_start
conda activate kubas
cd /Users/marcodigennaro/WORK/TME/KUBAS
}
function goto_nagare() {
conda_start
conda activate nagare
cd /Users/marcodigennaro/WORK/PYTHON/pakages/nagare
}
function goto_pgel() {
conda_start
conda activate pgel
cd /Users/marcodigennaro/WORK/TME/PGEL
export ASE_LAMMPSRUN_COMMAND=/Users/marcodigennaro/miniconda3/envs/pgel/bin/lmp_serial
###### NC_ROOT EXPORTS ########
export NC_ROOT="/Users/marcodigennaro/WORK/external_packages/ASE_ANI"
export LD_LIBRARY_PATH="$NC_ROOT/lib:$LD_LIBRARY_PATH"
export PYTHONPATH="$NC_ROOT/lib:$PYTHONPATH"
}
function goto_sto() {
conda_start
conda activate sto
cd /Users/marcodigennaro/WORK/TME/STO
}
function goto_abipy() {
conda_start
conda activate abipy
cd /Users/marcodigennaro/WORK/TME/
jupyter-lab --NotebookApp.password=''
}
function conda_start() {
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/Users/marcodigennaro/miniconda3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/Users/marcodigennaro/miniconda3/etc/profile.d/conda.sh" ]; then
# . "/Users/marcodigennaro/miniconda3/etc/profile.d/conda.sh" # commented out by conda initialize
else
# export PATH="/Users/marcodigennaro/miniconda3/bin:$PATH" # commented out by conda initialize
fi
fi
unset __conda_setup
# <<< conda initialize <<<
}
function parse_git_branch() {
git branch 2> /dev/null | sed -n -e 's/^\* \(.*\)/[\1]/p'
}
function virtualenv_info {
[ $VIRTUAL_ENV ] && echo '('`basename $VIRTUAL_ENV`') '
}
PROMPT='%*:%~ %% '
PROMPT='%F{green}%*%f:%F{blue}%~%f %% '
COLOR_DEF=$'%f'
COLOR_USR=$'%F{green}'
COLOR_DIR=$'%F{blue}'
COLOR_GIT=$'%F{red}'
setopt PROMPT_SUBST
export PROMPT='${COLOR_USR}mdg@macbook${COLOR_DIR} %c -> ${COLOR_GIT}$(parse_git_branch)${COLOR_DEF} '
export TEXMFHOME=/usr/local/Cellar/texlive/20220321_3/share/texmf-dist:/usr/local/texlive/2022/texmf-dist:$TEXMFHOME
export DISPLAY=:0
#more keys here
#https://zsh.sourceforge.io/Doc/Release/Zsh-Line-Editor.html#Standard-Widgets
bindkey "^[[H" beginning-of-line
bindkey "^[[F" end-of-line
bindkey "^[[3~" delete-char
test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh"
# GROMACS setup
autoload -Uz compinit
compinit
source /usr/local/gromacs/bin/GMXRC.bash
## TURBOMOLE setup
#export TURBODIR=/Users/marcodigennaro/WORK/CODES.nosync/TURBOMOLE
#export PATH=$TURBODIR/scripts:$PATH
#export PATH=$TURBODIR/bin/em64t-unknown-linux-gnu_mpi:$PATH
# MacPorts/VirtualBox
export MANPATH=/opt/local/share/man:$MANPATH
# alias clusters
alias nic5="ssh -XY nic5"
alias mtgnx="ssh matgenix-mdi@172.22.25.7"
export PATH="/Users/marcodigennaro/.local/bin:$PATH"
export LC_CTYPE=$LANG
export RDBASE=/usr/local/opt/rdkit/share/RDKit
# PERL
PATH="/Users/marcodigennaro/perl5/bin${PATH:+:${PATH}}"; export PATH;
PERL5LIB="/Users/marcodigennaro/perl5/lib/perl5${PERL5LIB:+:${PERL5LIB}}"; export PERL5LIB;
PERL_LOCAL_LIB_ROOT="/Users/marcodigennaro/perl5${PERL_LOCAL_LIB_ROOT:+:${PERL_LOCAL_LIB_ROOT}}"; export PERL_LOCAL_LIB_ROOT;
PERL_MB_OPT="--install_base \"/Users/marcodigennaro/perl5\""; export PERL_MB_OPT;
PERL_MM_OPT="INSTALL_BASE=/Users/marcodigennaro/perl5"; export PERL_MM_OPT;
# BOSS
export BOSSdir="/Users/marcodigennaro/CODES/boss"
export PATH="/usr/local/opt/tcl-tk/bin:$PATH"
#JAVA
export PATH="/usr/local/opt/openjdk/bin:$PATH"
export JAVA_HOME="/usr/local/opt/openjdk/"