]> git.donarmstrong.com Git - home-base.git/commitdiff
* dash doesn't support ~ in path; set it exactly
authorDon Armstrong <don@donarmstrong.com>
Sun, 12 Sep 2010 06:24:49 +0000 (06:24 +0000)
committerDon Armstrong <don@donarmstrong.com>
Sun, 12 Sep 2010 06:24:49 +0000 (06:24 +0000)
.bashrc

diff --git a/.bashrc b/.bashrc
index c1bdbbe70e271d6c9d7ca03c3a31cc6b84f9ea0d..fb14d9598ad41445a791e97728b212f31b93835d 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -132,7 +132,7 @@ if [ "$PS1" ]; then
     if [ "$(hostname)" == "liszt" ] && [ -d /var/list/.bin ]; then
        PATH="/var/list/.bin:$PATH"
     fi;
-    export PATH="~/bin:$PATH"
+    export PATH="$(getent passwd $(id -u)|awk -F: '{print $6}')/bin:$PATH"
     
     if [ ! -e ~/tmp ]; then
        mkdir ~/tmp;