diff --git a/home/scripts/git-sync-all.sh b/home/scripts/git-sync-all.sh index ad2d762d..e7b808eb 100755 --- a/home/scripts/git-sync-all.sh +++ b/home/scripts/git-sync-all.sh @@ -1,3 +1,5 @@ +#!/usr/bin/env bash + git -C "$HOME/.emacs/" pull --ff-only for DIRECTORY in $HOME/.password-store $HOME/.elfeed $HOME/Documents/Org $HOME/Documents/References; do diff --git a/home/scripts/nixos-update.sh b/home/scripts/nixos-update.sh index d9adc7a5..8475b806 100755 --- a/home/scripts/nixos-update.sh +++ b/home/scripts/nixos-update.sh @@ -1,2 +1,3 @@ #!/usr/bin/env bash + sudo nixos-rebuild switch --flake flake:nixos --refresh diff --git a/home/scripts/rsync-local-config.sh b/home/scripts/rsync-local-config.sh index 63cdb74c..7d1bd11b 100755 --- a/home/scripts/rsync-local-config.sh +++ b/home/scripts/rsync-local-config.sh @@ -1,6 +1,9 @@ +#!/usr/bin/env bash + HOST=$1 for TARGET in bat git zellij starship.toml; do SOURCE="$HOME/.config/$TARGET" + echo "--- $SOURCE ---" TMP_TARGET=/tmp/rsync-local-config TMP_SOURCE=$TMP_TARGET NIX_SED="sed -i 's|/nix/.*/bin/||g'" diff --git a/home/scripts/xdg-query-program.sh b/home/scripts/xdg-query-program.sh index 54c696ca..1444de5c 100755 --- a/home/scripts/xdg-query-program.sh +++ b/home/scripts/xdg-query-program.sh @@ -1,3 +1,5 @@ +#!/usr/bin/env bash + FILETYPE=$(xdg-mime query filetype $@) DEFAULT=$(xdg-mime query default $FILETYPE) echo "$FILETYPE -> $DEFAULT"