Use ~/usr/bin/ for local installations and to override /bin, but not /sbin.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Wed, 09 Sep 2015 22:58:18 +0300
changeset 750 58e68b82bf46
parent 749 89208f64214c
child 751 eddc767cd962
Use ~/usr/bin/ for local installations and to override /bin, but not /sbin.
.env
--- a/.env	Fri Sep 04 21:38:49 2015 +0300
+++ b/.env	Wed Sep 09 22:58:18 2015 +0300
@@ -27,7 +27,8 @@
 export CDPATH=.:~:~/devel:~/devel/my
 
 if [[ ! $PATH =~ $HOME/usr/bin ]]; then
-  export PATH=$PATH:~/usr/bin
+  # For local installations and to override /bin, but not /sbin.
+  export PATH=~/usr/bin:$PATH
 fi
 if [[ ! :$PATH =~ :/usr/sbin ]]; then
   export PATH=/usr/sbin:$PATH