summaryrefslogtreecommitdiff
path: root/setpath.sh
diff options
context:
space:
mode:
Diffstat (limited to 'setpath.sh')
-rw-r--r--setpath.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/setpath.sh b/setpath.sh
new file mode 100644
index 0000000..29b94ea
--- /dev/null
+++ b/setpath.sh
@@ -0,0 +1,16 @@
+#!/usr/bin/env sh
+
+# add some useful stuff to my path (if present)
+OLDPATH=$PATH
+for DIR in \
+ $HOME/bin \
+ $HOME/me/bin \
+ $HOME/.local/bin
+do
+ if [ -d $DIR ] then
+ PATH=$DIR:$PATH
+ fi
+done
+
+# source nix.sh if present
+[[ -f ~/.nix-profile/etc/profile.d/nix.sh ]] && . ~/.nix-profile/etc/profile.d/nix.sh