aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaul Benencia <rul@kalgan.cc>2022-02-15 14:08:19 -0800
committerRaul Benencia <rul@kalgan.cc>2022-02-15 14:08:19 -0800
commit85fa71737f78cf61a9abded2da05eef016636d9b (patch)
treef184575549e3be4d71686ae9e590b3c28ae6c93e
parent89124a08a1c27ee8d76e6b825f3ff0f70e2d1f8e (diff)
search aliases in .alias.d
-rw-r--r--.environment11
1 files changed, 11 insertions, 0 deletions
diff --git a/.environment b/.environment
index ee5b0c8..dd61ab8 100644
--- a/.environment
+++ b/.environment
@@ -38,9 +38,20 @@ export TMP
GOPATH=$HOME/src/go
PATH="$PATH:/usr/sbin:/sbin"
+if [ -d "$HOME/bin" ]; then
+ PATH="$HOME/bin:$PATH"
+fi
+
# extra
if [ -d ~/.environment.d/ ]; then
for e in $(find ~/.environment.d/ -type l,f); do
. $e
done
fi
+
+# aliases
+if [ -e ~/.alias.d/ ]; then
+ for e in $(find ~/.alias.d/ -type l,f | sort); do
+ . $e
+ done
+fi
nihil fit ex nihilo