summaryrefslogtreecommitdiff
path: root/zsh
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2016-04-16 16:32:09 +0200
committerPatrick Simianer <p@simianer.de>2016-04-16 16:32:09 +0200
commit2b637d4f8de113ef16d2072ab90ea1ec9195422d (patch)
treebf3079007741d8c7703ff848f0e4eab88b7ec2ca /zsh
parent07e3b984c41b36a2860c5e97626b370dc14d7b8e (diff)
.local
Diffstat (limited to 'zsh')
-rw-r--r--zsh/.zshrc26
1 files changed, 17 insertions, 9 deletions
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)"'