-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.zprofile
55 lines (48 loc) · 1.66 KB
/
.zprofile
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
# ~/.zprofile: executed by the command interpreter for login shells.
addlib () {
if ! echo $CPLUS_INCLUDE_PATH | egrep -q "(^|:)$1/include($|:)" ; then
export CPLUS_INCLUDE_PATH=$1/include${CPLUS_INCLUDE_PATH:+:$CPLUS_INCLUDE_PATH}
fi
if ! echo $LD_LIBRARY_PATH | egrep -q "(^|:)$1/lib($|:)" ; then
export LD_LIBRARY_PATH=$1/lib:$1/lib64${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
fi
if ! echo $LIBRARY_PATH | egrep -q "(^|:)$1/lib($|:)" ; then
export LIBRARY_PATH=$1/lib:$1/lib64${LIBRARY_PATH:+:$LIBRARY_PATH}
fi
if ! echo $PKG_CONFIG_PATH | egrep -q "(^|:)$1/lib($|:)" ; then
export PKG_CONFIG_PATH=$1/lib/pkgconfig${PKG_CONFIG_PATH:+:$PKG_CONFIG_PATH}
fi
}
addpath () {
if ! echo $PATH | egrep -q "(^|:)$1/bin($|:)" ; then
export PATH=$1/bin${PATH:+:$PATH}
fi
if ! echo $MANPATH | egrep -q "(^|:)$1/man($|:)" ; then
export MANPATH=:$1/share/man${MANPATH:+:$MANPATH}
fi
}
addenv () {
addlib $1
addpath $1
}
# General Env
export VISUAL=vim
export CTEST_OUTPUT_ON_FAILURE=1
export TRIQS_SHOW_EXCEPTION_TRACE=1
export OMP_NUM_THREADS=1
# === My Software
export PYTHONPATH=$HOME/opt:$PYTHONPATH
export PATH=$HOME/bin:$PATH
addenv $HOME/.local
#for f in $HOME/opt/*/; do
#addenv $f
#done
# Sanitizers
export ASAN_SYMBOLIZER_PATH=$(which llvm-symbolizer)
export ASAN_OPTIONS=symbolize=1:detect_leaks=0 # fast_unwind_on_malloc=0
export UBSAN_SYMBOLIZER_PATH=$(which llvm-symbolizer)
export UBSAN_OPTIONS=symbolize=1:print_stacktrace=1:halt_on_error=1
export TSAN_SYMBOLIZER_PATH=$(which llvm-symbolizer)
export TSAN_OPTIONS=symbolize=1:halt_on_error=1
export MSAN_SYMBOLIZER_PATH=$(which llvm-symbolizer)
export MSAN_OPTIONS=symbolize=1:halt_on_error=1