Ensure shebangs in scripts

This commit is contained in:
Evie Litherland-Smith 2024-02-05 09:51:38 +00:00
parent 832d42398e
commit db759f8e06
4 changed files with 8 additions and 0 deletions

View file

@ -1,3 +1,5 @@
#!/usr/bin/env bash
git -C "$HOME/.emacs/" pull --ff-only git -C "$HOME/.emacs/" pull --ff-only
for DIRECTORY in $HOME/.password-store $HOME/.elfeed $HOME/Documents/Org $HOME/Documents/References; do for DIRECTORY in $HOME/.password-store $HOME/.elfeed $HOME/Documents/Org $HOME/Documents/References; do

View file

@ -1,2 +1,3 @@
#!/usr/bin/env bash #!/usr/bin/env bash
sudo nixos-rebuild switch --flake flake:nixos --refresh sudo nixos-rebuild switch --flake flake:nixos --refresh

View file

@ -1,6 +1,9 @@
#!/usr/bin/env bash
HOST=$1 HOST=$1
for TARGET in bat git zellij starship.toml; do for TARGET in bat git zellij starship.toml; do
SOURCE="$HOME/.config/$TARGET" SOURCE="$HOME/.config/$TARGET"
echo "--- $SOURCE ---"
TMP_TARGET=/tmp/rsync-local-config TMP_TARGET=/tmp/rsync-local-config
TMP_SOURCE=$TMP_TARGET TMP_SOURCE=$TMP_TARGET
NIX_SED="sed -i 's|/nix/.*/bin/||g'" NIX_SED="sed -i 's|/nix/.*/bin/||g'"

View file

@ -1,3 +1,5 @@
#!/usr/bin/env bash
FILETYPE=$(xdg-mime query filetype $@) FILETYPE=$(xdg-mime query filetype $@)
DEFAULT=$(xdg-mime query default $FILETYPE) DEFAULT=$(xdg-mime query default $FILETYPE)
echo "$FILETYPE -> $DEFAULT" echo "$FILETYPE -> $DEFAULT"