diff options
author | Fabian Homborg <FHomborg@gmail.com> | 2016-06-10 18:47:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-10 18:47:55 +0200 |
commit | 5d20750aaa7bda68be0e0669083b59cbd737d6ee (patch) | |
tree | f88e6c1531177c05c91bdb269254f437ae5adb32 /share/functions | |
parent | c4e322d3ad04fbaa9d33bfbb086a7d387011da5e (diff) | |
parent | 4d49c902ac3ad01a7a93cdcb0876ca1dd4cb00fc (diff) |
Merge pull request #3123 from moverest/completion
Extend autocompletion support
Diffstat (limited to 'share/functions')
-rw-r--r-- | share/functions/__fish_print_modules.fish | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/share/functions/__fish_print_modules.fish b/share/functions/__fish_print_modules.fish new file mode 100644 index 00000000..e237e7a1 --- /dev/null +++ b/share/functions/__fish_print_modules.fish @@ -0,0 +1,4 @@ +# Helper function for completions that need to enumerate Linux modules +function __fish_print_modules + find /lib/modules/(uname -r)/{kernel,misc} -type f ^ /dev/null | sed -e 's$/.*/\([^/.]*\).*$\1$' +end |