~/usr/bin can't be placed before /bin in PATH because cygrun is recursively
runs in that case. Introduce ~/usr/xbin for symlinks to override /usr/bin.
--- a/.env Fri May 27 22:44:47 2016 +0300
+++ b/.env Fri May 27 22:55:56 2016 +0300
@@ -23,9 +23,12 @@
# Easy cd to often used dirs.
export CDPATH=.:$HOME:$HOME/devel:$HOME/my
+if [[ ! :$PATH: =~ :$HOME/usr/xbin: ]]; then
+ # To override /bin and /usr/bin.
+ export PATH=$HOME/usr/xbin:$PATH
+fi
if [[ ! :$PATH: =~ :$HOME/usr/bin: ]]; then
- # For local installations and to override /bin, but not /sbin.
- export PATH=$HOME/usr/bin:$PATH
+ export PATH=$PATH:$HOME/usr/bin
fi
if [[ ! :$PATH: =~ :/usr/sbin: ]]; then
export PATH=/usr/sbin:$PATH