From 0193d51c4c82c2f9c1d58cdc23d09775402a4404 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Wed, 27 Mar 2019 10:41:03 +0100 Subject: do not use ~ in PATH, only the shell can use it, not other programs --- bash_profile | 8 ++++---- 1 file 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}" -- cgit v1.2.3