updated commands
This commit is contained in:
parent
a2e331ba7b
commit
831c070836
1 changed files with 11 additions and 0 deletions
11
cfg/zsh/cfg.d/source.d/alias-ad.zsh
Normal file
11
cfg/zsh/cfg.d/source.d/alias-ad.zsh
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
function ad() {
|
||||||
|
|
||||||
|
if [[ "$@" == */ ]]; then
|
||||||
|
mkdir -p $@
|
||||||
|
else
|
||||||
|
for f in "$@"; do
|
||||||
|
mkdir -p "$(dirname "$f")"
|
||||||
|
done
|
||||||
|
touch "$@"
|
||||||
|
fi
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue