first commit
This commit is contained in:
11
bin/.updateLook-completion.bash
Executable file
11
bin/.updateLook-completion.bash
Executable file
@ -0,0 +1,11 @@
|
||||
#/usr/bin/env bash
|
||||
|
||||
_update_look_nas_completion () {
|
||||
COMPREPLY=()
|
||||
local cur=${COMP_WORDS[COMP_CWORD]}
|
||||
local THEMES=$(cd "$(dirname ${COMP_WORDS[0]})"/look ; ls -F -- '.' | grep '/$' | sed 's%/%%' | tr '\n' ' ' | sed 's% $%%')
|
||||
|
||||
COMPREPLY=($(compgen -W "${THEMES}" -- "${cur}"))
|
||||
return 0
|
||||
}
|
||||
complete -F _update_look_nas_completion updateLook.sh
|
Reference in New Issue
Block a user