mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
Make __fish_filter_mime not spew if there's no results
https://github.com/fish-shell/fish-shell/issues/628
This commit is contained in:
parent
37140d5e10
commit
7d480ff579
1 changed files with 4 additions and 2 deletions
|
@ -1,4 +1,3 @@
|
|||
|
||||
#
|
||||
# $argv[1] is a mimetype. The mimetype may contain wildcards. All
|
||||
# following arguments are filenames. Filenames matching the mimetype
|
||||
|
@ -10,7 +9,10 @@ function __fish_filter_mime -d "Select files with a specific mimetype"
|
|||
set -l mime_search $argv[1]
|
||||
set -e argv[1]
|
||||
|
||||
set -l mime (mimedb -f $argv)
|
||||
if not set -l mime (mimedb -f $argv)
|
||||
return 1
|
||||
end
|
||||
|
||||
set -l res
|
||||
|
||||
for i in (seq (count $mime))
|
||||
|
|
Loading…
Reference in a new issue