AutoYADM commit: 2025-07-07 18:42:34

This commit is contained in:
Daniel Fichtinger 2025-07-07 18:42:34 -04:00
parent 6e35eb0210
commit fef01ae393
3 changed files with 22 additions and 4 deletions

View file

@ -56,5 +56,21 @@ define-command -docstring %{
}
}
define-command -docstring %{
mkdir [<args>]: create directory
If no arguments, parents of current file are ensured.
Else, all args passed to mkdir.
} mkdir -params 0.. %{
evaluate-commands %sh{
if [ "$#" -eq 0 ]; then
# ensure current file parent
mkdir -p "$(dirname -- "$kak_buffile")"
else
# pass to mkdir
mkdir $@
fi
}
}
alias global rm remove-file
complete-command remove-file file