mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-01-19 19:22:45 +08:00
Fix __fish_print_packages for rpm
This commit is contained in:
parent
75b02e1d27
commit
71f6986dd6
|
@ -67,7 +67,7 @@ function __fish_print_packages
|
||||||
end
|
end
|
||||||
|
|
||||||
# Remove package version information from output and pipe into cache file
|
# Remove package version information from output and pipe into cache file
|
||||||
rpm -qa >$cache_file |sed -e 's/-[^-]*-[^-]*$//' | sed -e 's/$/'\t$package'/' &
|
rpm -qa | sed -e 's/-[^-]*-[^-]*$//' | sed -e 's/$/'\t$package'/' >$cache_file &
|
||||||
end
|
end
|
||||||
|
|
||||||
# This completes the package name from the portage tree.
|
# This completes the package name from the portage tree.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user