diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2022-12-10 23:21:12 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2022-12-10 23:21:52 -0700 |
commit | 39f9bc664b8e597203c5048b55b6da3d25f5cbdd (patch) | |
tree | 47dd5edac12c319b2cde636e3f9f87d058ddc910 | |
parent | b13fbe8a86db83c1c62866313f45c5fb4df044e3 (diff) | |
download | dotfiles-39f9bc664b8e597203c5048b55b6da3d25f5cbdd.tar.gz |
use shebangs more consistently
100 files changed, 101 insertions, 101 deletions
diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 13235b4c..3c6c73ac 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -5128,12 +5128,12 @@ We don't use the FILES parameter in the entry for \"d\" in (spw/define-skeleton spw/cperl-shebang (cperl-mode :abbrev "shebang") "" (read-string "Command line options: " "-w") - "#!/usr/bin/perl " str "\n\n") + "#!/usr/bin/env perl " str "\n\n") (spw/define-skeleton spw/cperl-program (cperl-mode :abbrev "use5") "" nil (and (buffer-file-name) (not (file-name-extension (buffer-file-name))) - "#!/usr/bin/perl\n\n") + "#!/usr/bin/env perl\n\n") "use 5.032;\nuse strict;\nuse warnings;\n\n" -) (spw/define-skeleton spw/cperl-package (cperl-mode :abbrev "package") diff --git a/archive/.irssi/scripts/autorun/anotherway.pl b/archive/.irssi/scripts/autorun/anotherway.pl index ba360f25..00c57273 100755 --- a/archive/.irssi/scripts/autorun/anotherway.pl +++ b/archive/.irssi/scripts/autorun/anotherway.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # # by Stefan Tomanek <stefan@pico.ruhr.de> diff --git a/archive/.irssi/scripts/autorun/format_identify.pl b/archive/.irssi/scripts/autorun/format_identify.pl index 0b19c445..8b7ffa13 100644 --- a/archive/.irssi/scripts/autorun/format_identify.pl +++ b/archive/.irssi/scripts/autorun/format_identify.pl @@ -1,5 +1,5 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # ^ to make vim know this is a perl script so I get syntax hilighting. ##################################################################### diff --git a/archive/bin/backuptom3 b/archive/bin/backuptom3 index 80a0ecc2..027fbb12 100755 --- a/archive/bin/backuptom3 +++ b/archive/bin/backuptom3 @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # backs up git repositories to m3 portable drive, excluding git annex diff --git a/archive/bin/bashmount b/archive/bin/bashmount index d12840aa..27f4cfe5 100755 --- a/archive/bin/bashmount +++ b/archive/bin/bashmount @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash #=============================================================================# # FILE: bashmount # diff --git a/archive/bin/bedtime b/archive/bin/bedtime index d0fda52f..1f9291af 100755 --- a/archive/bin/bedtime +++ b/archive/bin/bedtime @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . $HOME/.shenv diff --git a/archive/bin/bitlbee_startup b/archive/bin/bitlbee_startup index aaabbf7e..f35a50c2 100755 --- a/archive/bin/bitlbee_startup +++ b/archive/bin/bitlbee_startup @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . $HOME/.shenv diff --git a/archive/bin/build_rpi_sd_card.sh b/archive/bin/build_rpi_sd_card.sh index a8a90bbc..757b6c39 100755 --- a/archive/bin/build_rpi_sd_card.sh +++ b/archive/bin/build_rpi_sd_card.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # build your own Raspberry Pi SD card # diff --git a/archive/bin/capture-mail b/archive/bin/capture-mail index 6347d172..138ff50a 100755 --- a/archive/bin/capture-mail +++ b/archive/bin/capture-mail @@ -1,4 +1,4 @@ -#!/bin/zsh +#!/usr/bin/env zsh msg=$(cat /dev/stdin) diff --git a/archive/bin/coldbkup b/archive/bin/coldbkup index 03187950..313092a0 100755 --- a/archive/bin/coldbkup +++ b/archive/bin/coldbkup @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # backup to removable, offline media diff --git a/archive/bin/debian-ftp-master b/archive/bin/debian-ftp-master index e410c021..ff57a68c 100755 --- a/archive/bin/debian-ftp-master +++ b/archive/bin/debian-ftp-master @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # debian-ftp-master -- set up some windows for doing work on Debian's ftp-master diff --git a/archive/bin/develacc-inner b/archive/bin/develacc-inner index cb094e4b..608b0fcd 100755 --- a/archive/bin/develacc-inner +++ b/archive/bin/develacc-inner @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # Config diff --git a/archive/bin/develacc-push b/archive/bin/develacc-push index 23bcb319..12535fb1 100755 --- a/archive/bin/develacc-push +++ b/archive/bin/develacc-push @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl use strict; use warnings; diff --git a/archive/bin/develacc-push-all b/archive/bin/develacc-push-all index 1fb132de..40ed5f66 100755 --- a/archive/bin/develacc-push-all +++ b/archive/bin/develacc-push-all @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl use strict; use warnings; diff --git a/archive/bin/dionysusbk b/archive/bin/dionysusbk index 9c6ad0d6..410ea91a 100755 --- a/archive/bin/dionysusbk +++ b/archive/bin/dionysusbk @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash DIONYSUS="/media/usb0" DEST="$HOME/lib/annex/old/androidbk" diff --git a/archive/bin/ed b/archive/bin/ed index 8fab919f..4cee65c9 100755 --- a/archive/bin/ed +++ b/archive/bin/ed @@ -1,4 +1,4 @@ -#!/bin/zsh +#!/usr/bin/env zsh # string=`echo "emacsclient -nw --eval '(dired \\\\\\"$PWD\\\\\\")'"` diff --git a/archive/bin/emacs-pkg-subtree b/archive/bin/emacs-pkg-subtree index 0465b6e5..894d0f23 100755 --- a/archive/bin/emacs-pkg-subtree +++ b/archive/bin/emacs-pkg-subtree @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # emacs-pkg-subtree --- manage Emacs packages as git subtrees in your dotfiles git repo diff --git a/archive/bin/find-unused b/archive/bin/find-unused index 67ccb5d1..ebe81a36 100755 --- a/archive/bin/find-unused +++ b/archive/bin/find-unused @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash while read l; do n=$(echo $l | awk '{print $1}') diff --git a/archive/bin/fmr-sync-suspend b/archive/bin/fmr-sync-suspend index ab8d67d7..9c96a95c 100755 --- a/archive/bin/fmr-sync-suspend +++ b/archive/bin/fmr-sync-suspend @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # ^ different shells have different options for read() . $HOME/.shenv diff --git a/archive/bin/greypdf b/archive/bin/greypdf index 4735e0f5..36570343 100755 --- a/archive/bin/greypdf +++ b/archive/bin/greypdf @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # convert pdf to grayscale, preserving metadata # "AFAIK graphicx has no feature for manipulating colorspaces. " http://groups.google.com/group/latexusersgroup/browse_thread/thread/5ebbc3ff9978af05 # "> Is there an easy (or just standard) way with pdflatex to do a > conversion from color to grayscale when a PDF file is generated? No." ... "If you want to convert a multipage document then you better have pdftops from the xpdf suite installed because Ghostscript's pdf to ps doesn't produce nice Postscript." http://osdir.com/ml/tex.pdftex/2008-05/msg00006.html diff --git a/archive/bin/i3-rotate-wallpaper b/archive/bin/i3-rotate-wallpaper index 43f84462..94e9358e 100755 --- a/archive/bin/i3-rotate-wallpaper +++ b/archive/bin/i3-rotate-wallpaper @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl use 5.028; use strict; diff --git a/archive/bin/i3-startup-i3lock-inner b/archive/bin/i3-startup-i3lock-inner index 02c59c90..47db5ff1 100755 --- a/archive/bin/i3-startup-i3lock-inner +++ b/archive/bin/i3-startup-i3lock-inner @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # From /usr/share/doc/xss-lock/transfer-sleep-lock-i3lock.sh on Debian stretch diff --git a/archive/bin/i3-startup-xtrlock-inner-lock b/archive/bin/i3-startup-xtrlock-inner-lock index 3721d4c0..4bfce22f 100755 --- a/archive/bin/i3-startup-xtrlock-inner-lock +++ b/archive/bin/i3-startup-xtrlock-inner-lock @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Based on /usr/share/doc/xss-lock/transfer-sleep-lock-i3lock.sh on # Debian stretch diff --git a/archive/bin/ii b/archive/bin/ii index d3176ad8..644aed11 100755 --- a/archive/bin/ii +++ b/archive/bin/ii @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash if [ "$(hostname -f)" = "athena.silentflame.com" ]; then # start irssi under tmux if it's not running diff --git a/archive/bin/imap-password b/archive/bin/imap-password index 38d8b521..6cba41c6 100755 --- a/archive/bin/imap-password +++ b/archive/bin/imap-password @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # http://www.kirya.net/articles/my-mail-client-setup/ # http://www.clasohm.com/blog/one-entry?entry_id=90957 diff --git a/archive/bin/ma_org_publish b/archive/bin/ma_org_publish index 2faab6f9..fe733344 100755 --- a/archive/bin/ma_org_publish +++ b/archive/bin/ma_org_publish @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . $HOME/.shenv diff --git a/archive/bin/offlineimap.py b/archive/bin/offlineimap.py index 10282dd1..aa9c0fc0 100755 --- a/archive/bin/offlineimap.py +++ b/archive/bin/offlineimap.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # http://www.kirya.net/articles/my-mail-client-setup/ # http://www.clasohm.com/blog/one-entry?entry_id=90957 diff --git a/archive/bin/orgblosxom2ikiwiki.py b/archive/bin/orgblosxom2ikiwiki.py index 6d177e1d..9ff32929 100755 --- a/archive/bin/orgblosxom2ikiwiki.py +++ b/archive/bin/orgblosxom2ikiwiki.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # coding=utf-8 import os diff --git a/archive/bin/podcastsup b/archive/bin/podcastsup index 27a3037a..e176332e 100755 --- a/archive/bin/podcastsup +++ b/archive/bin/podcastsup @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash cd ~/lib/annex/big/audio/Podcasts diff --git a/archive/bin/privoxy-blocklist.sh b/archive/bin/privoxy-blocklist.sh index 0f91d6bf..3bdc672a 100755 --- a/archive/bin/privoxy-blocklist.sh +++ b/archive/bin/privoxy-blocklist.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # ###################################################################### # diff --git a/archive/bin/propellor_lines b/archive/bin/propellor_lines index 8bdd28e1..37cd35b6 100755 --- a/archive/bin/propellor_lines +++ b/archive/bin/propellor_lines @@ -1,4 +1,4 @@ -#!/usr/bin/runhaskell +#!/usr/bin/env runhaskell main = interact $ unlines . propellorLines . lines diff --git a/archive/bin/rdate.py b/archive/bin/rdate.py index 8f6ca902..9850dda5 100755 --- a/archive/bin/rdate.py +++ b/archive/bin/rdate.py @@ -1,4 +1,4 @@ -#!/usr/pkg/bin/python2.7 +#!/usr/bin/env python """ Remembers or restores the original posting date of entry. diff --git a/archive/bin/rdate.py-dir b/archive/bin/rdate.py-dir index 6862c3f3..6348b678 100755 --- a/archive/bin/rdate.py-dir +++ b/archive/bin/rdate.py-dir @@ -1,4 +1,4 @@ -#!/usr/pkg/bin/bash +#!/usr/bin/env bash shopt -s nullglob diff --git a/archive/bin/rt b/archive/bin/rt index 66c8a864..bf6a8cd1 100755 --- a/archive/bin/rt +++ b/archive/bin/rt @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . $HOME/.shenv # first check that there exist the dirs we need diff --git a/archive/bin/sblog b/archive/bin/sblog index cded87db..0f0d0f7b 100755 --- a/archive/bin/sblog +++ b/archive/bin/sblog @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # try to view latest debuild/sbuild log diff --git a/archive/bin/searchmail b/archive/bin/searchmail index 33d8bc4f..f0428748 100755 --- a/archive/bin/searchmail +++ b/archive/bin/searchmail @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # searchmail --- Wrapper around mairix to open results in mutt # diff --git a/archive/bin/send-irssi-away-log b/archive/bin/send-irssi-away-log index b7df1dcc..1e364e15 100755 --- a/archive/bin/send-irssi-away-log +++ b/archive/bin/send-irssi-away-log @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl use 5.028; use strict; diff --git a/archive/bin/sscan b/archive/bin/sscan index 33098d1d..36c2c9a6 100755 --- a/archive/bin/sscan +++ b/archive/bin/sscan @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python import time import tempfile diff --git a/archive/bin/sysmaint b/archive/bin/sysmaint index 5cd85827..dfc6ae88 100755 --- a/archive/bin/sysmaint +++ b/archive/bin/sysmaint @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # This is meant to walk me through maintenance tasks that # can't/shouldn't happen unattended by means of Propellor and/or cron diff --git a/archive/bin/test-import b/archive/bin/test-import index 85176abb..a38e232c 100755 --- a/archive/bin/test-import +++ b/archive/bin/test-import @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl use lib "$ENV{HOME}/src/dotfiles/perl5"; diff --git a/archive/bin/urxvttmux b/archive/bin/urxvttmux index 720381ba..a8ec3b26 100755 --- a/archive/bin/urxvttmux +++ b/archive/bin/urxvttmux @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash export MOSH_TITLE_NOPREFIX=true diff --git a/archive/bin/usbskelhere b/archive/bin/usbskelhere index d242e482..f0177b78 100755 --- a/archive/bin/usbskelhere +++ b/archive/bin/usbskelhere @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . $HOME/.shenv . $HOME/src/dotfiles/lib-src/tputfs.sh diff --git a/archive/bin/workstation-uninstallable b/archive/bin/workstation-uninstallable index acb538c1..12780df6 100755 --- a/archive/bin/workstation-uninstallable +++ b/archive/bin/workstation-uninstallable @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # Run this script to find packages that I might want to uninstall, or # at least mark as automatically installed. We find all manually diff --git a/archive/bin/workstation-uninstallable-alt b/archive/bin/workstation-uninstallable-alt index 4f5e302c..98dafa23 100755 --- a/archive/bin/workstation-uninstallable-alt +++ b/archive/bin/workstation-uninstallable-alt @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # orig: http://askubuntu.com/a/630674 diff --git a/archive/bin/xmouse-away-from-edge b/archive/bin/xmouse-away-from-edge index 8ddf8aaa..df149448 100755 --- a/archive/bin/xmouse-away-from-edge +++ b/archive/bin/xmouse-away-from-edge @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # Copyright (C) 2019 Sean Whitton # diff --git a/archive/bin/xmousetidy b/archive/bin/xmousetidy index 004c0998..211d649c 100755 --- a/archive/bin/xmousetidy +++ b/archive/bin/xmousetidy @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash xdotool mousemove \ $(xdpyinfo | \ diff --git a/archive/bin/yankfmailpw b/archive/bin/yankfmailpw index 85c75d8d..5d1699b4 100755 --- a/archive/bin/yankfmailpw +++ b/archive/bin/yankfmailpw @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash source /root/.shenv diff --git a/archive/hooks/git/propellor/post-checkout_01dirlocals b/archive/hooks/git/propellor/post-checkout_01dirlocals index 472868cf..aac23d9e 100755 --- a/archive/hooks/git/propellor/post-checkout_01dirlocals +++ b/archive/hooks/git/propellor/post-checkout_01dirlocals @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl use strict; use warnings; diff --git a/archive/lib-src/tputfs.sh b/archive/lib-src/tputfs.sh index ab3c3c3a..2539386a 100755 --- a/archive/lib-src/tputfs.sh +++ b/archive/lib-src/tputfs.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # shell scripting functions using tput diff --git a/archive/perl5/Stow.pm b/archive/perl5/Stow.pm index bda7d3ab..1e486baf 100644 --- a/archive/perl5/Stow.pm +++ b/archive/perl5/Stow.pm @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl package Stow; diff --git a/archive/perl5/TestExec.pm b/archive/perl5/TestExec.pm index cf7bcd86..886a286f 100755 --- a/archive/perl5/TestExec.pm +++ b/archive/perl5/TestExec.pm @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl package TestExec; diff --git a/archive/scripts/desktop/wofi_ssh_lxc b/archive/scripts/desktop/wofi_ssh_lxc index 41a296a8..75f4526e 100755 --- a/archive/scripts/desktop/wofi_ssh_lxc +++ b/archive/scripts/desktop/wofi_ssh_lxc @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # for connecting to athenet LXCs which don't have ssh daemons diff --git a/bin/annex-checksum-reinject b/bin/annex-checksum-reinject index 6d533046..e868e8e0 100755 --- a/bin/annex-checksum-reinject +++ b/bin/annex-checksum-reinject @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # Copyright (C) 2019 Sean Whitton # diff --git a/bin/annex-drop-files-deleted-by-commit b/bin/annex-drop-files-deleted-by-commit index b8079091..8db25300 100755 --- a/bin/annex-drop-files-deleted-by-commit +++ b/bin/annex-drop-files-deleted-by-commit @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # Copyright (C) 2019-2020 Sean Whitton # diff --git a/bin/blogdims b/bin/blogdims index 26f3aec4..a60be0b6 100755 --- a/bin/blogdims +++ b/bin/blogdims @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # blog image aspect ratio calculator diff --git a/bin/boto-empty-bucket b/bin/boto-empty-bucket index 7e44e7d1..69093207 100755 --- a/bin/boto-empty-bucket +++ b/bin/boto-empty-bucket @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 """boto-empty-bucket -- delete all versions from an s3 bucket""" diff --git a/bin/boto-empty-deleted-versions b/bin/boto-empty-deleted-versions index f5e8c367..46e3b776 100755 --- a/bin/boto-empty-deleted-versions +++ b/bin/boto-empty-deleted-versions @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 """boto-empty-deleted-versions -- delete all versions of deleted files from an s3 bucket""" diff --git a/bin/buildssrht-preupload b/bin/buildssrht-preupload index e974dae6..ad66c1f9 100755 --- a/bin/buildssrht-preupload +++ b/bin/buildssrht-preupload @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # Copyright (C) 2020 Sean Whitton # diff --git a/bin/choose-wallpaper b/bin/choose-wallpaper index e1fd8bd0..5fc14c83 100755 --- a/bin/choose-wallpaper +++ b/bin/choose-wallpaper @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl use 5.028; use strict; diff --git a/bin/chronic b/bin/chronic index f70091a7..feecddb9 100755 --- a/bin/chronic +++ b/bin/chronic @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl =head1 NAME @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # release process for almost all of the Debian packages I maintain diff --git a/bin/git-branchmove b/bin/git-branchmove index 156078fa..6c4b153a 100755 --- a/bin/git-branchmove +++ b/bin/git-branchmove @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # git-branchmove -- move branches to or from a remote diff --git a/bin/git-develacc b/bin/git-develacc index 99982b8a..02485f6b 100755 --- a/bin/git-develacc +++ b/bin/git-develacc @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # git-develacc -- manage repositories in develacc NFS share diff --git a/bin/git-is-clean b/bin/git-is-clean index d6619d8f..4416ac31 100755 --- a/bin/git-is-clean +++ b/bin/git-is-clean @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # find dirty working directories/staging areas/stashes diff --git a/bin/git-merge-ff b/bin/git-merge-ff index a367573c..e772041d 100755 --- a/bin/git-merge-ff +++ b/bin/git-merge-ff @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # source: Jefromi on Stack Overflow -- https://stackoverflow.com/a/4157435 @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl use strict; use warnings; diff --git a/bin/git-pull-safe b/bin/git-pull-safe index 874c67e2..ab3ac251 100755 --- a/bin/git-pull-safe +++ b/bin/git-pull-safe @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Update all remote-tracking branches, and as many local branches that # we can fast-forward. Additionally, if the current branch looks like diff --git a/bin/git-push-all b/bin/git-push-all index b1c0d072..93170948 100755 --- a/bin/git-push-all +++ b/bin/git-push-all @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # git-push-all -- intelligently push most branches diff --git a/bin/git-rebase-interdiff b/bin/git-rebase-interdiff index 3092dc19..7ebe3fa9 100755 --- a/bin/git-rebase-interdiff +++ b/bin/git-rebase-interdiff @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # by Ian Jackson 2018, licensed MIT diff --git a/bin/git-reporeview b/bin/git-reporeview index 291c298a..04a55c64 100755 --- a/bin/git-reporeview +++ b/bin/git-reporeview @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # should work for repos not properly registered with mr as uses Git repo # subclasses diff --git a/bin/git-verify-commit-by-fp b/bin/git-verify-commit-by-fp index b105a3ef..057bfa37 100755 --- a/bin/git-verify-commit-by-fp +++ b/bin/git-verify-commit-by-fp @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # git-verify-commit-by-fp -- verify that a commit was signed by a particular key diff --git a/bin/ifuse-photos-to-tmp b/bin/ifuse-photos-to-tmp index 8dee9692..e031da0e 100755 --- a/bin/ifuse-photos-to-tmp +++ b/bin/ifuse-photos-to-tmp @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # ifuse-photos-to-tmp -- import photos from iPhone/iPad/etc. using ifuse diff --git a/bin/kindlenotes b/bin/kindlenotes index a7963236..afecbfe5 100755 --- a/bin/kindlenotes +++ b/bin/kindlenotes @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash MNT=/media/swhitton/Kindle DEST="$HOME/tmp/Kindle notes" diff --git a/bin/locmaint b/bin/locmaint index 9a7baa28..4a771ac3 100755 --- a/bin/locmaint +++ b/bin/locmaint @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # Copyright (C) 2015-2020 Sean Whitton # diff --git a/bin/movemymail b/bin/movemymail index 68eb0ca6..8f5812f9 100755 --- a/bin/movemymail +++ b/bin/movemymail @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl use 5.032; use strict; diff --git a/bin/reprepro-rebuilder b/bin/reprepro-rebuilder index d2fe6255..c184eacc 100755 --- a/bin/reprepro-rebuilder +++ b/bin/reprepro-rebuilder @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # reprepro-rebuilder -- rebuild Debian packages for a local repository @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # Name: /usr/local/bin/rrsync (should also have a symlink in /usr/bin) # Purpose: Restricts rsync to subdirectory declared in .ssh/authorized_keys # Author: Joe Smith <js-cgi@inwap.com> 30-Sep-2004 diff --git a/bin/src-cleanup b/bin/src-cleanup index 94c1370a..20815c7e 100755 --- a/bin/src-cleanup +++ b/bin/src-cleanup @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl use strict; use warnings; diff --git a/bin/src-unregister b/bin/src-unregister index 751ccddf..61d8f899 100755 --- a/bin/src-unregister +++ b/bin/src-unregister @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # Script to remove repositories in ~/src, including removing their # entries from ~/.mrconfig. Confirmation is required only if the diff --git a/bin/ssh-and-tmux b/bin/ssh-and-tmux index 90eeb2d5..85827bd9 100755 --- a/bin/ssh-and-tmux +++ b/bin/ssh-and-tmux @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (C) 2020-2022 Sean Whitton # diff --git a/bin/workstation-duplicity b/bin/workstation-duplicity index d4f7e246..f9a0fc38 100755 --- a/bin/workstation-duplicity +++ b/bin/workstation-duplicity @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e diff --git a/hooks/git/chained_hook b/hooks/git/chained_hook index f9feb2fc..edb6b83b 100755 --- a/hooks/git/chained_hook +++ b/hooks/git/chained_hook @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # Some aspects of this approach are due to: # http://blog.bluefeet.net/2011/08/chained-git-hooks/ diff --git a/hooks/git/pre-push_signed-off-by b/hooks/git/pre-push_signed-off-by index baaa8771..51981fe7 100755 --- a/hooks/git/pre-push_signed-off-by +++ b/hooks/git/pre-push_signed-off-by @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # some of this is from # https://lubomir.github.io/en/2016-05-04-signoff-hooks.html diff --git a/scripts/arizona/d2ldlrn b/scripts/arizona/d2ldlrn index ad5b3302..dec3e47f 100755 --- a/scripts/arizona/d2ldlrn +++ b/scripts/arizona/d2ldlrn @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl use 5.028; use strict; diff --git a/scripts/arizona/syllabus_dates b/scripts/arizona/syllabus_dates index 444e93cf..4907344e 100755 --- a/scripts/arizona/syllabus_dates +++ b/scripts/arizona/syllabus_dates @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl use Date::Manip; diff --git a/scripts/desktop/fresh-workspace b/scripts/desktop/fresh-workspace index de369569..d02065cd 100755 --- a/scripts/desktop/fresh-workspace +++ b/scripts/desktop/fresh-workspace @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl use lib "$ENV{HOME}/src/dotfiles/perl5"; use Local::Desktop; diff --git a/scripts/desktop/i3status-wrapper b/scripts/desktop/i3status-wrapper index 3ac4a5c6..bee9dce4 100755 --- a/scripts/desktop/i3status-wrapper +++ b/scripts/desktop/i3status-wrapper @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # i3status-wrapper -- wrapper for i3status(1), plus other monitoring # diff --git a/scripts/desktop/sway-ftp-master b/scripts/desktop/sway-ftp-master index 11b954b4..fee97c97 100755 --- a/scripts/desktop/sway-ftp-master +++ b/scripts/desktop/sway-ftp-master @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # sway-ftp-master -- set up some windows for doing work on Debian's ftp-master # diff --git a/scripts/desktop/xuserrun b/scripts/desktop/xuserrun index 6ec24350..204d996b 100755 --- a/scripts/desktop/xuserrun +++ b/scripts/desktop/xuserrun @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Run a command as the currently active X11 user diff --git a/scripts/docs/make-poster-pdf b/scripts/docs/make-poster-pdf index f8ac917b..a6b735f3 100755 --- a/scripts/docs/make-poster-pdf +++ b/scripts/docs/make-poster-pdf @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Resizes files to A4 (or other size - change PaperWdthMetr and PaperHghtMetr below) and merges into a PDF diff --git a/scripts/docs/pdfbg.py b/scripts/docs/pdfbg.py index af1b28cd..fa494927 100755 --- a/scripts/docs/pdfbg.py +++ b/scripts/docs/pdfbg.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python import tempfile import subprocess diff --git a/scripts/flashdrive/usbpubkeys b/scripts/flashdrive/usbpubkeys index 20330b99..798868b3 100755 --- a/scripts/flashdrive/usbpubkeys +++ b/scripts/flashdrive/usbpubkeys @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # update cache of ssh and https host keys for USB drives diff --git a/scripts/git/fill-missing-signoffs-since b/scripts/git/fill-missing-signoffs-since index 35612cc7..4ea6312b 100755 --- a/scripts/git/fill-missing-signoffs-since +++ b/scripts/git/fill-missing-signoffs-since @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # fill-missing-signoffs-since -- fill in missing Signed-off-by: lines diff --git a/scripts/mail/archive-fmail-to-annex b/scripts/mail/archive-fmail-to-annex index 4990082c..67c45268 100755 --- a/scripts/mail/archive-fmail-to-annex +++ b/scripts/mail/archive-fmail-to-annex @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # Copyright (C) 2019 Sean Whitton # diff --git a/scripts/mail/expand-annex-to-fmail b/scripts/mail/expand-annex-to-fmail index a0985283..cda5003f 100755 --- a/scripts/mail/expand-annex-to-fmail +++ b/scripts/mail/expand-annex-to-fmail @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # Copyright (C) 2019, 2022 Sean Whitton # diff --git a/scripts/media/burndir b/scripts/media/burndir index 786845ac..fa0abbec 100755 --- a/scripts/media/burndir +++ b/scripts/media/burndir @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash #Usage: burndir <dir> <device> diff --git a/scripts/media/copydvd b/scripts/media/copydvd index 6b939c68..228ab645 100755 --- a/scripts/media/copydvd +++ b/scripts/media/copydvd @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash #Usage: copydvd <read> <write> diff --git a/scripts/media/encode.sh b/scripts/media/encode.sh index 4c72eff5..6e0bf483 100755 --- a/scripts/media/encode.sh +++ b/scripts/media/encode.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # encode.sh # diff --git a/scripts/pgp/offcaff b/scripts/pgp/offcaff index ef71398d..7e931bf2 100755 --- a/scripts/pgp/offcaff +++ b/scripts/pgp/offcaff @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # credits: David Bremner -- https://www.cs.unb.ca/~bremner/blog/posts/offcaff/ diff --git a/scripts/root/ata-secure-erase b/scripts/root/ata-secure-erase index 2a998904..8aca4dc2 100755 --- a/scripts/root/ata-secure-erase +++ b/scripts/root/ata-secure-erase @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # activate hardware's mysterious black magic "ATA secure erase", to # prepare for old drive disposal, or to reclaim used parts of an SSD |