]> git.armaanb.net Git - charsel.git/blobdiff - shell-completions
properly added shell completions
[charsel.git] / shell-completions
diff --git a/shell-completions b/shell-completions
new file mode 100755 (executable)
index 0000000..172eb4b
--- /dev/null
@@ -0,0 +1,12 @@
+charfiles()
+{
+  _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 charfiles charsel