Files
dotfiles/completions/_dfp

19 lines
292 B
Plaintext
Executable File

#compdef dfpe dfps
dfpath="$(wd path df)"
out=()
__read_dir() {
dir="$1"
res=($(find $dir -print | sed "s/${dir//\//\\/}\///" | grep -i "\.z\?sh$" | sed -E 's/\.plugin\.z?sh//g'))
for i in $res; do
out+=("$i")
done
}
cd "$dfpath/plugins"
__read_dir .
_describe 'dotfile' out