summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2019-03-27 10:41:03 +0100
committerPeter Palfrader <peter@palfrader.org>2019-03-27 10:41:03 +0100
commit0193d51c4c82c2f9c1d58cdc23d09775402a4404 (patch)
tree9083a9ced0a703a4154a72e702a5d24fa3440a91
parenta010551a0d4d8650ea21d1f5b160105b41e16b6a (diff)
do not use ~ in PATH, only the shell can use it, not other programs
-rw-r--r--bash_profile8
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}"