From 8a93b6f26db4626e8f107a4f30aa20e3268581be Mon Sep 17 00:00:00 2001 From: axel Date: Tue, 17 Feb 2009 07:11:03 +1000 Subject: [PATCH] Make xdg-version of open handle multiple files. darcs-hash:20090216211103-ac50b-f8268e8d50a84457bb49ac3d1e982cba09dbfec6.gz --- share/functions/open.fish | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/share/functions/open.fish b/share/functions/open.fish index 4b764d750..885079e11 100644 --- a/share/functions/open.fish +++ b/share/functions/open.fish @@ -15,7 +15,9 @@ if not test (uname) = Darwin end if type -f xdg-open >/dev/null - xdg-open $argv + for i in $argv + xdg-open $i + end else mimedb -l -- $argv end