12 lines
300 B
Fish
12 lines
300 B
Fish
function mksh --description 'make executable shell script'
|
|
argparse 'e/edit' -- $argv
|
|
set name $argv[1]
|
|
echo $name.sh
|
|
set file $name.sh
|
|
echo $file
|
|
printf '#!/bin/sh\n\n' >$file
|
|
chmod +x $file
|
|
if set -q _flag_e
|
|
kak "$file" -e 'exec -with-hooks gjo'
|
|
end
|
|
end
|