mirror of
https://github.com/chenasraf/dotfiles.git
synced 2026-05-17 17:28:07 +00:00
19 lines
292 B
Plaintext
Executable File
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
|