summaryrefslogtreecommitdiff
path: root/zsh
diff options
context:
space:
mode:
authorpks <pks@pks.rocks>2024-08-13 10:15:02 +0200
committerpks <pks@pks.rocks>2024-08-13 10:15:02 +0200
commitf02b4b172b14bd721e57ebdf4d04b51060920a51 (patch)
treeb3aab5ee5675df694c8dc4afe8f28125826b0d35 /zsh
parent1388b6fd0143b38b4f9f91aa6904b3b884bdb5c9 (diff)
zsh: fix gentoo build env
Diffstat (limited to 'zsh')
-rw-r--r--zsh/.zshrc8
1 files changed, 6 insertions, 2 deletions
diff --git a/zsh/.zshrc b/zsh/.zshrc
index e6f0c43..ba081c7 100644
--- a/zsh/.zshrc
+++ b/zsh/.zshrc
@@ -207,14 +207,18 @@ export RUBYOPT=-Ku
export GEM_HOME=$HOME/.local/lib/ruby/
export GEM_PATH=$HOME/.local/lib/ruby/:$GEM_PATH
-export PYTHONPATH=$PYTHONPATH:~/.local/lib/python/site-packages:~/.local/lib/python3/site-packages
+if [ ! -z $PYTHONPATH ]; then
+ export PYTHONPATH=~/.local/lib/python/site-packages:~/.local/lib/python3/site-packages:$PYTHONPATH
+else
+ export PYTHONPATH=~/.local/lib/python/site-packages:~/.local/lib/python3/site-packages
+fi
export PATH=~/.local/lib/python/site-packages:$PATH
export PATH=~/.local/lib/node/bin:$PATH
export TEXMFHOME='~/.texmf'
-export CFLAGS="-march=native -mtune=native"
+export CFLAGS="-O2 -march=native -mtune=native -pipe"
export CXXFLAGS="$CFLAGS"
export CCACHE_PATH=/usr/bin