summaryrefslogtreecommitdiff
path: root/setpath.sh
blob: d47d61c7e5b8babc5a641cc52ab56221d45e8eb8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/env sh

# add some useful stuff to my path (if present)
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
if [ -f ~/.nix-profile/etc/profile.d/nix.sh ]; then
  # shellcheck source=/home/ben/.nix-profile/etc/profile.d/nix.sh
  . ~/.nix-profile/etc/profile.d/nix.sh
fi