From f9f70099edcadd2d7bf93ddf2fc91b2b0ae993e0 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Thu, 8 Sep 2016 11:34:29 +1200 Subject: Add text-filename heuristic completion Filesystem type and filename extension-based to keep things quick and simple and not forking out to other tools. We'll see how well this works, but so far I really like it. --- bash/bash_completion.d/awk.bash | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 bash/bash_completion.d/awk.bash (limited to 'bash/bash_completion.d/awk.bash') diff --git a/bash/bash_completion.d/awk.bash b/bash/bash_completion.d/awk.bash new file mode 100644 index 00000000..6c6f4b72 --- /dev/null +++ b/bash/bash_completion.d/awk.bash @@ -0,0 +1,5 @@ +# Completion for awk(1) with files that look editable +declare -F _text_filenames >/dev/null || + source "$HOME"/.bash_completion.d/_text_filenames.bash +complete -F _text_filenames -o filenames awk + -- cgit v1.2.3