You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As I understood (I've read zypper.fish completions file), fish should complete packages for me. It doesn't work. After pressing TAB key I instantly get files completions.
fish, version 2.1.1
openSUSE 13.1, 13.2
The text was updated successfully, but these errors were encountered:
The package list is generated by RPM, which takes a long time, so the output is cached. It won't be available on the first run. Once it's generated, you should have a file at ~/.cache/.rpm-cache.$USER, and fish will complete packages from this cache.
If it's not generating or using the cache correctly, please reopen the ticket.
By some reason file was empty. I deleted it and launched a new fish session to regenerate it. I've pressed TAB and nothing happened. I've copied a line, generated cache file and completion started to work.
rpm command knows only about installed packages. How about using zypper on openSUSE?
# all packages
zypper --quiet --no-refresh search | tail -n +4 | sed -E 's/^. \| ((\w|[-_.])+).*/\1/g'>/tmp/packages
# installed only
zypper --quiet --no-refresh search --installed-only | tail -n +4 | sed -E 's/^. \| ((\w|[-_.])+).*/\1/g'>/tmp/packages
# uninstalled only
zypper --quiet --no-refresh search --uninstalled-only | tail -n +4 | sed -E 's/^. \| ((\w|[-_.])+).*/\1/g'>/tmp/packages
As I understood (I've read
zypper.fish
completions file),fish
should complete packages for me. It doesn't work. After pressing TAB key I instantly get files completions.The text was updated successfully, but these errors were encountered: