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.
This commit is contained in:
Tom Willemse 2022-03-03 01:17:04 -08:00
parent 2a845b3720
commit 88b6ba1760
3 changed files with 12 additions and 5 deletions

View file

@ -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
;;

View file

@ -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
;;

View file

@ -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"))