r/bashtricks • • Nov 25 '19

A nifty alias to quickly create a bash script

https://gist.github.com/sempervent/4d94593e0d56f8fc1b43f92b9983d61f
4 Upvotes

2 comments sorted by

1

u/sempervent Nov 25 '19

I hope someone can find this useful. Feedback is much appreciated.

1

u/BooeySays Apr 24 '20

I have a similar one.

Mine is a script that does the following:

  • Creates a file with "#!/usr/bin/env bash" at the top

  • followed by some commented info,

  • Opens the script/file using nano with the cursor set to the last line

  • Option to make the script an executable after exiting nano

https://gist.github.com/BooeySays/43314361553810d9a116425b0e6fdfd2