mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-25 20:33:08 +00:00
Fix fish-shell issue #4996: open -a works now on non-english installs
This commit is contained in:
parent
e6aacd6167
commit
9401d3a6d5
1 changed files with 2 additions and 2 deletions
|
@ -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.'
|
||||
|
|
Loading…
Reference in a new issue