From 9401d3a6d59f9f932021856aa0e6d060e3fb2cdd Mon Sep 17 00:00:00 2001 From: Alexander Skwar Date: Fri, 18 May 2018 16:21:27 +0200 Subject: [PATCH] Fix fish-shell issue #4996: open -a works now on non-english installs --- share/completions/open.fish | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/share/completions/open.fish b/share/completions/open.fish index a7547726d..2b687763d 100644 --- a/share/completions/open.fish +++ b/share/completions/open.fish @@ -1,6 +1,6 @@ if test (uname) = 'Darwin' # OS X - complete -c open -s a -d 'Open APP, or open FILE(s), if supplied, with APP' -r -a "(mdfind -onlyin /Applications -onlyin ~/Applications -onlyin /Developer/Applications 'kMDItemKind==Application' | sed -E 's/.+\/(.+)\.app/\1/g')" - complete -c open -s b -d 'Bundle Identifier of APP to open, or to be used to open FILE' -x -a "(mdls (mdfind -onlyin /Applications -onlyin ~/Applications -onlyin /Developer/Applications 'kMDItemKind==Application') -name kMDItemCFBundleIdentifier | sed -E 's/kMDItemCFBundleIdentifier = \"(.+)\"/\1/g')" + complete -c open -s a -d 'Open APP, or open FILE(s), if supplied, with APP' -r -a "(mdfind -onlyin /Applications -onlyin ~/Applications -onlyin /Developer/Applications 'kMDItemContentType==com.apple.application-*' | sed -E 's/.+\/(.+)\.app/\1/g')" + complete -c open -s b -d 'Bundle Identifier of APP to open, or to be used to open FILE' -x -a "(mdls (mdfind -onlyin /Applications -onlyin ~/Applications -onlyin /Developer/Applications 'kMDItemContentType==com.apple.application-*') -name kMDItemCFBundleIdentifier | sed -E 's/kMDItemCFBundleIdentifier = \"(.+)\"/\1/g')" complete -c open -s e -d 'Open FILE(s) with /Applications/TextEdit' complete -c open -s t -d 'Open FILE(s) with default text editor from LaunchServices' complete -c open -s f -d 'Open STDIN/PIPE with default text editor. End input with C-d.'