diff options
| author | 2022-03-03 01:17:04 -0800 | |
|---|---|---|
| committer | 2022-03-03 01:17:04 -0800 | |
| commit | 88b6ba1760e8ba6a68c8e392112ac41df2b2addb (patch) | |
| tree | 85b73553eed2b36d038882f24c279cd4b1a336e6 | |
| parent | 2a845b372083e60a938eac07bd02f8618afea6fe (diff) | |
| download | new-dotfiles-88b6ba1760e8ba6a68c8e392112ac41df2b2addb.tar.gz new-dotfiles-88b6ba1760e8ba6a68c8e392112ac41df2b2addb.zip | |
Update scsh file headers for shell scripts
Other file headers come with caveats:
- ‘#!/usr/bin/scsh -s’ :: Now that scsh is installed through Guix, this is not
where this file lives.
- ‘#!/usr/bin/env -S scsh -s’ :: This doesn't work when we need to specify move
arguments on the command line and need to use the meta-argument.
‘env -S scsh \’ doesn't work.
| -rwxr-xr-x | herbstluftwm/usr/bin/hlwm-run-or-raise | 5 | ||||
| -rwxr-xr-x | herbstluftwm/usr/bin/hlwm-switch-tags | 6 | ||||
| -rwxr-xr-x | polybar/usr/bin/count-emails | 6 |
3 files changed, 12 insertions, 5 deletions
diff --git a/herbstluftwm/usr/bin/hlwm-run-or-raise b/herbstluftwm/usr/bin/hlwm-run-or-raise index 85d7389..0657088 100755 --- a/herbstluftwm/usr/bin/hlwm-run-or-raise +++ b/herbstluftwm/usr/bin/hlwm-run-or-raise @@ -1,4 +1,7 @@ -#!/usr/bin/scsh -s +#!/usr/bin/env sh +# # -*- mode: scheme; -*- +IFS=" " +exec scsh -s "$0" "$@" !# ;; hlwm-run-or-raise --- Raise a window or start a new process ;; diff --git a/herbstluftwm/usr/bin/hlwm-switch-tags b/herbstluftwm/usr/bin/hlwm-switch-tags index 06a10d2..f741ed8 100755 --- a/herbstluftwm/usr/bin/hlwm-switch-tags +++ b/herbstluftwm/usr/bin/hlwm-switch-tags @@ -1,5 +1,7 @@ -#!/usr/bin/scsh \ --o define-record-types -s +#!/usr/bin/env sh +# -*- mode: scheme; -*- +IFS=" " +exec scsh -o define-record-types -s "$0" "$@" !# ;; hlwm-switch-tags --- Switch the currently visible tags ;; diff --git a/polybar/usr/bin/count-emails b/polybar/usr/bin/count-emails index 98a2573..787d69d 100755 --- a/polybar/usr/bin/count-emails +++ b/polybar/usr/bin/count-emails @@ -1,5 +1,7 @@ -#!/usr/bin/env -S scsh -s -;; -*- mode: scheme; -*- +#!/usr/bin/env sh +# -*- mode: scheme; -*- +IFS=" " +exec scsh -s "$0" "$@" !# (define mail-root (string-append (getenv "HOME") "/documents/mail")) |
