I'm trying to figure out how to use the complete bash builtin to override tab completion of "environment variables." That is, when there is a dollar sign $ to the left of the cursor, with all characters between the dollar sign and the cursor [a-zA-Z0-9_]. Is this possible?

Specifically, I'm hoping to enable FZF fuzzy completion of environment variables.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.