AutoYADM commit: 2025-07-07 18:42:34
This commit is contained in:
parent
6e35eb0210
commit
fef01ae393
3 changed files with 22 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue