From 10af53f0094ccc74d818dc2fff101363e3da0995 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Mon, 21 May 2018 16:44:47 -0700 Subject: Reorganize stuff into files --- setpath.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 setpath.sh (limited to 'setpath.sh') 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 -- cgit v1.2.3