diff --git a/init.sh b/init.sh index 4cecd43..f7ab9da 100644 --- a/init.sh +++ b/init.sh @@ -3,7 +3,7 @@ # usage: addenv env_name path function addenv() { sed -i -e "/^export $1=.*/d" ~/.bashrc - echo "export $1=`readlink -e $2`" >> ~/.bashrc + echo "export $1=`readlink -f $2`" >> ~/.bashrc echo "By default this script will add environment variables into ~/.bashrc." echo "After that, please run 'source ~/.bashrc' to let these variables take effect." echo "If you use shell other than bash, please add these environment variables manually."