Compleat - Completion for Human Beings Plugin
| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,22 @@ |
| 0 |
+# ------------------------------------------------------------------------------ |
|
| 1 |
+# FILE: compleat.plugin.zsh |
|
| 2 |
+# DESCRIPTION: oh-my-zsh plugin file. |
|
| 3 |
+# AUTHOR: Sorin Ionescu (sorin.ionescu@gmail.com) |
|
| 4 |
+# VERSION: 1.0.0 |
|
| 5 |
+# ------------------------------------------------------------------------------ |
|
| 6 |
+ |
|
| 7 |
+ |
|
| 8 |
+if (( ${+commands[compleat]} )); then
|
|
| 9 |
+ local prefix="${commands[compleat]:h:h}"
|
|
| 10 |
+ local setup="${prefix}/share/compleat-1.0/compleat_setup"
|
|
| 11 |
+ |
|
| 12 |
+ if [[ -f "$setup" ]]; then |
|
| 13 |
+ if ! bashcompinit >/dev/null 2>&1; then |
|
| 14 |
+ autoload -U bashcompinit |
|
| 15 |
+ bashcompinit -i |
|
| 16 |
+ fi |
|
| 17 |
+ |
|
| 18 |
+ source "$setup" |
|
| 19 |
+ fi |
|
| 20 |
+fi |
|
| 21 |
+ |