aboutsummaryrefslogtreecommitdiffstats
path: root/polybar
diff options
context:
space:
mode:
authorGravatar Tom Willemse2022-03-03 01:17:04 -0800
committerGravatar Tom Willemse2022-03-03 01:17:04 -0800
commit88b6ba1760e8ba6a68c8e392112ac41df2b2addb (patch)
tree85b73553eed2b36d038882f24c279cd4b1a336e6 /polybar
parent2a845b372083e60a938eac07bd02f8618afea6fe (diff)
downloadnew-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.
Diffstat (limited to 'polybar')
-rwxr-xr-xpolybar/usr/bin/count-emails6
1 files changed, 4 insertions, 2 deletions
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"))