Automatically open new scripts after creating them
This commit is contained in:
parent
d74744190b
commit
7461f3b25e
1 changed files with 5 additions and 3 deletions
|
@ -8,14 +8,16 @@ set -o errexit
|
|||
set -o nounset
|
||||
set -o pipefail
|
||||
|
||||
cat > "${1}" << EOF
|
||||
cat > "$1" << EOF
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -o errexit
|
||||
set -o nounset
|
||||
set -o pipefail
|
||||
|
||||
echo "${1}"
|
||||
|
||||
EOF
|
||||
|
||||
chmod +x "${1}"
|
||||
chmod +x "$1"
|
||||
|
||||
$EDITOR "$1";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue