diff options
author | Peter Palfrader <peter@palfrader.org> | 2019-03-27 10:41:03 +0100 |
---|---|---|
committer | Peter Palfrader <peter@palfrader.org> | 2019-03-27 10:41:03 +0100 |
commit | 0193d51c4c82c2f9c1d58cdc23d09775402a4404 (patch) | |
tree | 9083a9ced0a703a4154a72e702a5d24fa3440a91 | |
parent | a010551a0d4d8650ea21d1f5b160105b41e16b6a (diff) |
do not use ~ in PATH, only the shell can use it, not other programs
-rw-r--r-- | bash_profile | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bash_profile b/bash_profile index ef85b9f..1e8fd30 100644 --- a/bash_profile +++ b/bash_profile @@ -15,11 +15,11 @@ if [ -f ~/.bashrc ]; then source ~/.bashrc fi -if [ -d ~/bin ] ; then - PATH="~/bin:${PATH}" +if [ -d "${HOME}/bin" ] ; then + PATH="${HOME}/bin:${PATH}" fi -if [ -d ~/local/bin ] ; then - PATH="~/local/bin:${PATH}" +if [ -d "${HOME}/local/bin" ] ; then + PATH="${HOME}/local/bin:${PATH}" fi if [ -d /usr/lib/compilercache ] ; then PATH="/usr/lib/compilercache:${PATH}" |