From 2b637d4f8de113ef16d2072ab90ea1ec9195422d Mon Sep 17 00:00:00 2001 From: Patrick Simianer
Date: Sat, 16 Apr 2016 16:32:09 +0200 Subject: .local --- zsh/.zshrc | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) (limited to 'zsh') diff --git a/zsh/.zshrc b/zsh/.zshrc index 4120382..f219eef 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -28,10 +28,7 @@ ZDIR=~/.zsh/ # ############################################################################# umask 0077 -export PATH=~/bin:/home/pks/bin:~/scripts:$PATH -export PATH=~/lib/ruby/bin:$PATH -export PATH=~/lib/python/site-packages:$PATH -export PATH=~/lib/node/bin:$PATH +export PATH=~/.local/bin:~/scripts:$PATH export PATH=/usr/sbin:/usr/local/bin:/usr/local/sbin:$PATH export EDITOR='vim -p' @@ -41,10 +38,14 @@ export LANG=en_US.UTF-8 export LANGUAGE=en_US.UTF-8 export RUBYOPT=-Ku -export GEM_HOME=$HOME/lib/ruby/ -export GEM_PATH=$HOME/lib/ruby/:$GEM_PATH +export PATH=~/.local/lib/ruby/bin:$PATH +export GEM_HOME=$HOME/.local/lib/ruby/ +export GEM_PATH=$HOME/.local/lib/ruby/:$GEM_PATH export PYTHONPATH=$PYTHONPATH:~/lib/python/site-packages +export PATH=~/.local/lib/python/site-packages:$PATH + +export PATH=~/.local/lib/node/bin:$PATH export TEXMFHOME='~/.texmf' @@ -52,6 +53,12 @@ export CFLAGS="-march=native -mtune=native" export CXXFLAGS="$CFLAGS" export CCACHE_PATH=/usr/bin +case `whoami` in + root) + export PATH=/home/pks/.local/bin:$PATH + ;; +esac + # ############################################################################# # terminal # ############################################################################# @@ -149,7 +156,7 @@ case `hostname` in alias tmux="tmux -f ~/.tmux.`hostname`.conf" ;; x|pi*|*.uberspace.de) - PATH=/usr/lib/colorgcc/bin:~/src/scripts:$PATH + PATH=/usr/lib/colorgcc/bin:$PATH ;; esac @@ -210,8 +217,9 @@ alias muxn='tmux new -s' alias muxl='tmux list-sessions' alias muxa='tmux attach -t' -alias easy_install_home='easy_install --install-dir=$HOME/lib/python/site-packages' -alias npm_install='npm install -g --prefix ./lib/node' +alias easy_install_home='easy_install --install-dir=$HOME/.local/lib/python/site-packages' +alias pip_home='install --install-option="--install-purelib=~/.local/lib/python/site-packages"' +alias npm_install_home='npm install -g --prefix ~/.local/lib/node' alias my_ip='echo "$(curl 'https://api.ipify.org' 2>/dev/null)"' -- cgit v1.2.3