]> git.armaanb.net Git - charsel.git/blobdiff - bash-completions
added completions
[charsel.git] / bash-completions
diff --git a/bash-completions b/bash-completions
new file mode 100755 (executable)
index 0000000..375d8eb
--- /dev/null
@@ -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