"~" expanded only on word start. Use "$HOME" instead of ~ for this
authorOleksandr Gavenko <gavenkoa@gmail.com>
Mon, 01 Feb 2016 18:06:02 +0200
changeset 786 2a3e6cf308f2
parent 785 ec32614ca2bc
child 787 98c7afe91a58
"~" expanded only on word start. Use "$HOME" instead of ~ for this reason and for uniformity.
.env
--- a/.env	Mon Feb 01 17:39:47 2016 +0200
+++ b/.env	Mon Feb 01 18:06:02 2016 +0200
@@ -24,11 +24,11 @@
 export TIME_STYLE=long-iso
 
 # Easy cd to often used dirs.
-export CDPATH=.:~:~/devel:~/devel/my
+export CDPATH=.:$HOME:$HOME/devel:$HOME/devel/my
 
 if [[ ! $PATH =~ $HOME/usr/bin ]]; then
   # For local installations and to override /bin, but not /sbin.
-  export PATH=~/usr/bin:$PATH
+  export PATH=$HOME/usr/bin:$PATH
 fi
 if [[ ! :$PATH =~ :/usr/sbin ]]; then
   export PATH=/usr/sbin:$PATH
@@ -36,8 +36,8 @@
 if [[ ! :$PATH =~ :/sbin ]]; then
   export PATH=/sbin:$PATH
 fi
-if [[ ! :$PATH =~ :~/.local/bin ]]; then
-  export PATH=$PATH:~/.local/bin
+if [[ ! :$PATH =~ :$HOME/.local/bin ]]; then
+  export PATH=$PATH:$HOME/.local/bin
 fi
 
 
@@ -47,22 +47,22 @@
 fi
 
 if [[ -z $MANPATH ]]; then
-  export MANPATH=~/usr/share/man:
+  export MANPATH=$HOME/usr/share/man:
 elif [[ ! $MANPATH =~ $HOME/usr/share/man: ]]; then
   export MANPATH=$MANPATH:$HOME/usr/share/man:
 fi
 
 if [[ -z $INFOPATH ]]; then
-  export INFOPATH=~/usr/share/info:
+  export INFOPATH=$HOME/usr/share/info:
 elif [[ ! $INFOPATH =~ $HOME/usr/share/info: ]]; then
   export INFOPATH=$INFOPATH:$HOME/usr/share/info:
 fi
 
-export PYTHONSTARTUP=~/.pystartup
+export PYTHONSTARTUP=$HOME/.pystartup
 
 export GRADLE_OPTS='-Dorg.gradle.daemon=true'
 
-if [[ ! :$PATH =~ :~/.npm-packages/bin ]]; then
-  export PATH=$PATH:~/.npm-packages/bin
+if [[ ! :$PATH =~ :$HOME/.npm-packages/bin ]]; then
+  export PATH=$PATH:$HOME/.npm-packages/bin
 fi