Last active
December 11, 2019 05:30
-
-
Save eddieh/a6ade1fbb953f46caaa582b77776395e to your computer and use it in GitHub Desktop.
Insert shebang #! with Emacs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/tail -n+2 | |
Don't chmod that file! Don't type a shebang! Edit an executable script | |
in Emacs and invoke | |
M-x executable-set-magic | |
This is a self-displaying file made with `executable-self-display'. If | |
you have had a stroke and forgotten how to make a script executable by | |
hand, just insert the following form as the first line of the script | |
#!/path/to/shell [optional-argument] | |
Then change the mode of the script | |
chmod u+x script |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment