X-Git-Url: https://git.armaanb.net/?p=charsel.git;a=blobdiff_plain;f=bash-completions;fp=bash-completions;h=375d8ebcd682237e758342dc6d03d05baf132921;hp=0000000000000000000000000000000000000000;hb=55679d54448ed92b94f2db454b07d5ff839ba6b5;hpb=ba3ef21cadf9954b53686a686ee2a3f23a789624 diff --git a/bash-completions b/bash-completions new file mode 100755 index 0000000..375d8eb --- /dev/null +++ b/bash-completions @@ -0,0 +1,12 @@ +_script() +{ + _script_commands=$(charsel -L) + + local cur prev + COMPREPLY=() + cur="${COMP_WORDS[COMP_CWORD]}" + COMPREPLY=( $(compgen -W "${_script_commands}" -- ${cur}) ) + + return 0 +} +complete -o nospace -F _script charsel