2
0
Fork 0
mirror of https://github.com/fish-shell/fish-shell synced 2025-01-23 18:25:06 +00:00
fish-shell/share/functions/__fish_print_modules.fish

5 lines
206 B
Fish
Raw Normal View History

# 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