Update script to create script

master
Hektor Misplon 2022-10-27 03:29:24 +02:00
parent a8c4805542
commit d1635ffd31
1 changed files with 9 additions and 1 deletions

View File

@ -13,5 +13,13 @@ path="$HOME/.bin/$1"
set -o noclobber set -o noclobber
# Create script # Create script
echo "#!/usr/bin/env bash" > "$path" cat > "$path" << EOF
#!/usr/bin/env bash
EOF
chmod +x "$path" chmod +x "$path"
# Open script in editor on line 3
"$EDITOR" +3 "$path"