diff options
author | Ben Sima <ben@bsima.me> | 2018-05-21 16:44:47 -0700 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2018-05-21 16:44:47 -0700 |
commit | 10af53f0094ccc74d818dc2fff101363e3da0995 (patch) | |
tree | e522ec2799740373126db62b78daf3daa0d97efc /setpath.sh | |
parent | 6e536c4a6966b5b8c6508191d79e9574d4df44bf (diff) |
Reorganize stuff into files
Diffstat (limited to 'setpath.sh')
-rw-r--r-- | setpath.sh | 16 |
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 |