diff options
author | Clément Martinez <clementmartinezdev@gmail.com> | 2016-06-08 15:13:18 +0200 |
---|---|---|
committer | Clément Martinez <clementmartinezdev@gmail.com> | 2016-06-08 15:13:18 +0200 |
commit | 059e11078cf65269f17c8d100c49c9a6811b9ec9 (patch) | |
tree | d31f0191fab04008e75b586445652267f6dcfdb2 /share/functions/__fish_print_modules.fish | |
parent | e30db95baa3916b008a4d4a9b265e98018854bc9 (diff) |
Split __fish_print_modules from modprob.fish and modinfo.fish
Diffstat (limited to 'share/functions/__fish_print_modules.fish')
-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 |