AutoYADM commit: 2025-06-15 15:36:37
This commit is contained in:
parent
c38b84424a
commit
53d84afc8d
4 changed files with 20 additions and 6 deletions
|
@ -1,4 +1,12 @@
|
|||
function mksh --description 'make executable shell script' --argument-names name
|
||||
printf '#!/bin/sh\n\n' >$name.sh
|
||||
chmod +x $name.sh
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue