AutoYADM commit: 2025-04-25 16:30:05
This commit is contained in:
parent
87ae9f44dd
commit
51717aed6d
2 changed files with 19 additions and 4 deletions
|
@ -5,6 +5,10 @@ function mkfish --description 'Make an executable fish script'
|
|||
end
|
||||
# each arg is a script to create
|
||||
for name in $argv
|
||||
if test -f "$name.fish"
|
||||
echo Skipping existing file...
|
||||
continue
|
||||
end
|
||||
printf '#!/usr/bin/env fish'\n\n"echo $name" >"$name.fish"
|
||||
chmod +x "$name.fish"
|
||||
path resolve "$name.fish"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue