From 49f9535f1cd17f1c30b62464555b057d3daa3c66 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 12 Oct 2025 04:51:04 -0500 Subject: notes --- smartcd.test | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'smartcd.test') 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() { -- cgit v1.2.3