]> git.wh0rd.org Git - home.git/commitdiff
also source a local bfin-alias.sh
authorMike Frysinger <vapier@gentoo.org>
Tue, 31 Jul 2012 20:57:29 +0000 (16:57 -0400)
committerMike Frysinger <vapier@gentoo.org>
Tue, 31 Jul 2012 20:57:29 +0000 (16:57 -0400)
.profile.d/bfin-alias.sh

index 8c4edf8148ca7b2e15eb7f1bcf9e16b8f66e47d3..4627bd3a3a01ac76c6e1c7227d1fab1274d3ebf8 100644 (file)
@@ -114,7 +114,10 @@ bfin_path() {
        bfin-reset() {
                export PATH=$(</tmp/bfin-reset-PATH.$$)
                rm -f /tmp/bfin-reset-PATH.$$
-               source /usr/local/src/blackfin/git/toolchain/distribution/snapshots/bfin-alias
+               local f
+               for f in /usr/local/src/blackfin/git/toolchain/distribution/snapshots/bfin-alias ~/.profile.d/bfin-alias.sh ; do
+                       [[ -e ${f} ]] && source "${f}"
+               done
                local g
                for g in $(alias 2>&1 | sed -n '/^alias bfin-/{s:^alias ::;s:=.*::;p}') ; do
                        unalias ${g}