From 0489a948e2d8145f71e39adadde0b618a85326ff Mon Sep 17 00:00:00 2001 From: Thomas Forgione Date: Fri, 20 Oct 2017 10:24:40 +0200 Subject: [PATCH] Cleaned path --- zsh/exports.zsh | 22 +--------------------- zsh/path.zsh | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+), 21 deletions(-) create mode 100644 zsh/path.zsh diff --git a/zsh/exports.zsh b/zsh/exports.zsh index baf8f24..d9c2767 100644 --- a/zsh/exports.zsh +++ b/zsh/exports.zsh @@ -1,20 +1,9 @@ -# The path -export PATH=$PATH/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/bin/core_perl:/opt/android-ndk:/opt/android-sdk/tools/:/opt/android-sdk/build-tools/24.0.0/:/usr/lib/emscripten:$HOME/.script/check:$HOME/.gem/ruby/2.3.0/bin:$HOME/.scripts:$HOME/.more-scripts/stop/:$HOME/.more-scripts/ - # My editor export EDITOR="vim" -# Some config -export LD_LIBRARY_PATH=/usr/lib -# export LD_PRELOAD='/usr/$LIB/libstdc++.so.6 /usr/$LIB/libgcc_s.so.1 /usr/$LIB/libxcb.so.1' +# Parallel conpilation with make export MAKEFLAGS="+j`nproc`" -# Paths needed for soft -export CLASSPATH="$CLASSPATH:$HOME/.java/packages/*:$HOME/.java/packages/lib/*:/usr/share/java/*:/usr/share/scala/lib/*" -export MATLABPATH=$HOME/.matlab2 -export GOPATH="$HOME/.config/go" -export TEXMFHOME="$HOME/.texmf" - # I want clang as default compiler if it exists command -v clang > /dev/null 2>&1 if [ $? -eq 0 ]; then @@ -29,15 +18,6 @@ fi # Wine Debug export WINEDEBUG=-all -# for go -if [ -d /opt/go/bin ]; then - export GOROOT=/opt/go - export GOPATH=$HOME/srcs/go - export PATH=$PATH:$GOROOT/bin -fi - # for rust export RUST_BACKTRACE=1 -# gclone -export GCLONE_PATH=~/git diff --git a/zsh/path.zsh b/zsh/path.zsh new file mode 100644 index 0000000..f823767 --- /dev/null +++ b/zsh/path.zsh @@ -0,0 +1,22 @@ +# The base path +export PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH + +# The scripts path +if [ -d "$HOME/.scripts" ]; then + export PATH=$HOME/.scripts:$PATH +fi + +# Rust path +if [ -d $HOME/.cargo ]; then + export PATH=$HOME/.cargo/bin:$PATH +fi + +# LD_LIBRARY_PATH: I don't know why there is this line here but I'm too scared +# to delete it +export LD_LIBRARY_PATH=/usr/lib:$LD_LIBRARY_PATH + +# Texmf home: hidden directory +export TEXMFHOME=$HOME/.texmf + +# My git directory: where I want to clone all my repos +export GCLONE_PATH=~/git