git.nynim.org
/
dotfiles.git
/ blob
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
.vim: vim-powerline
[dotfiles.git]
/
bin
/
prune-dirs
1
#!/bin/sh
2
# Usage: prune-dirs <path>...
3
# Remove empty directories under and including <path>s.
4
5
for
dir
in
"$@"
6
do
find
"
$dir
"
-type
d
-empty -depth
|
xargs rmdir
7
done