From 7f8db88964c8265130f81e6f3a4faf5f098bab2c Mon Sep 17 00:00:00 2001 From: Daniel Kempkens Date: Wed, 8 Jan 2025 10:00:39 +0100 Subject: [PATCH] shell: magic comments in various scripts --- home/programs/scripts/bdfr | 3 ++- home/programs/scripts/strip-metadata | 3 ++- home/programs/zsh/functions/mediaservercmd | 2 ++ home/programs/zsh/functions/nrsw | 2 ++ home/programs/zsh/functions/upn | 2 ++ home/programs/zsh/functions/wssh | 0 6 files changed, 10 insertions(+), 2 deletions(-) mode change 100644 => 100755 home/programs/zsh/functions/wssh diff --git a/home/programs/scripts/bdfr b/home/programs/scripts/bdfr index daa9388..7dbf6b1 100755 --- a/home/programs/scripts/bdfr +++ b/home/programs/scripts/bdfr @@ -1,4 +1,5 @@ -#!/usr/bin/env nu +#!/usr/bin/env nix-shell +#! nix-shell -i nu -p nushell let base_url = "https://media-browser.internal.kempkens.network/management/jobs/BdfrDownload/run?" diff --git a/home/programs/scripts/strip-metadata b/home/programs/scripts/strip-metadata index 47742c8..ee23935 100755 --- a/home/programs/scripts/strip-metadata +++ b/home/programs/scripts/strip-metadata @@ -1,4 +1,5 @@ -#!/usr/bin/env nu +#!/usr/bin/env nix-shell +#! nix-shell -i nu -p nushell def main [path: string] { glob $path | each { |item| diff --git a/home/programs/zsh/functions/mediaservercmd b/home/programs/zsh/functions/mediaservercmd index c9438f9..645c09d 100755 --- a/home/programs/zsh/functions/mediaservercmd +++ b/home/programs/zsh/functions/mediaservercmd @@ -3,3 +3,5 @@ printf "\033]1337;SetUserVar=%s=%s\007" cmd-domain `echo -n ssh | base64` et -c "$*" mediaserver printf "\033]1337;SetUserVar=%s=%s\007" cmd-domain `echo -n local | base64` + +# vim: ft=sh diff --git a/home/programs/zsh/functions/nrsw b/home/programs/zsh/functions/nrsw index bd856c3..19f71c1 100755 --- a/home/programs/zsh/functions/nrsw +++ b/home/programs/zsh/functions/nrsw @@ -30,3 +30,5 @@ fi rm -f result popd + +# vim: ft=sh diff --git a/home/programs/zsh/functions/upn b/home/programs/zsh/functions/upn index fd90625..eafe203 100755 --- a/home/programs/zsh/functions/upn +++ b/home/programs/zsh/functions/upn @@ -11,3 +11,5 @@ case "$os" in echo "Unsupported OS" exit 1 esac + +# vim: ft=sh diff --git a/home/programs/zsh/functions/wssh b/home/programs/zsh/functions/wssh old mode 100644 new mode 100755