mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-28 04:03:39 +08:00
cb9f4e621f
Fedora puts them in /usr/lib64 without having /usr/lib as a symlink. Also silence errors (in case a directory doesn't exist) and stringify. See https://bugzilla.redhat.com/show_bug.cgi?id=1442628. CC @amluto.
10 lines
557 B
Fish
10 lines
557 B
Fish
|
|
complete -c lua -s e -d 'Execute string' -x
|
|
# Try the most common lib directories, silencing errors in case they don't exist.
|
|
complete -c lua -s l -d 'Require library' -xa "(find /usr/lib{,32,64}/lua/ -name \*.so -printf '%f\n' ^/dev/null | string replace -r '.so\$' '')"
|
|
complete -c lua -s i -d 'Enter interactive mode after executing script'
|
|
complete -c lua -s v -d 'Show version'
|
|
complete -c lua -s h -l help -d 'Print help and exit'
|
|
complete -c lua -a "(__fish_complete_suffix .lua)"
|
|
complete -c lua -a '-' -d 'Execute stdin and stop handling options'
|