summaryrefslogtreecommitdiff
path: root/smartcd.test
diff options
context:
space:
mode:
Diffstat (limited to 'smartcd.test')
-rw-r--r--smartcd.test6
1 files changed, 6 insertions, 0 deletions
diff --git a/smartcd.test b/smartcd.test
index d476814..517ffe8 100644
--- a/smartcd.test
+++ b/smartcd.test
@@ -1,4 +1,10 @@
# could work like 'z' ?
+#
+ // "complete -C /usr/bin/argv forge" bash ENV values:
+ // * `COMP_LINE`: A string containing the entire current command line (forge first second third forth ). This is what you are looking for.
+ // * `COMP_POINT`: A number indicating the cursor's position (index) within the COMP_LINE.
+ // * `COMP_WORDS`: An array in Bash (seen differently by Go) containing each individual word on the command line.
+ // * `COMP_CWORD`: A number indicating the index of the word the cursor is currently on within the COMP_WORDS array.
_cd_complete()
{