summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages.nix1
-rw-r--r--setpath.sh8
2 files changed, 6 insertions, 3 deletions
diff --git a/packages.nix b/packages.nix
index f0cc53d..1433e7b 100644
--- a/packages.nix
+++ b/packages.nix
@@ -30,6 +30,7 @@ pkgs.racket
pkgs.ranger
pkgs.ripgrep
pkgs.scrot
+pkgs.shellcheck
pkgs.shutter
pkgs.stack2nix
pkgs.tdesktop
diff --git a/setpath.sh b/setpath.sh
index 29b94ea..d47d61c 100644
--- a/setpath.sh
+++ b/setpath.sh
@@ -1,16 +1,18 @@
#!/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
+ 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
+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