Hi!
Here is a completions file for the "open" command on OSX. I haven't
made many completions files yet, so it can probably be done better....
---
#
# completions for the 'open' command in OSX
#
# better would be mdfind "kind:application" , but it is too slow
complete -x -c open -s a -d "Specify application" -a "
(
find /Applications -maxdepth 3 -name \*app -print | sed 's/.*\///'
find /sw/Applications -maxdepth 3 -name \*app -print | sed 's/.*\///'
find /Developer/Applications -maxdepth 5 -name \*app -print | sed
's/.*\///'
)
"
complete -x -c open -s e -d "Open with TextEdit"
complete -x -c open -s t -d "Open with default text editor"
complete -x -c open -s f -d "Reads input from standard input and opens
with TextEdit"
complete -x -c open -s W -l wait-apps -d "Blocks until the used
applications are closed"
complete -x -c open -s n -l new -d "Open a new instance of the
application even if one is already running"
complete -x -c open -s g -l background -d "Does not bring the
application to the foreground"
complete -x -c open -s h -l header -a "
(
locate Headers |grep Library |grep '[.]h' | sed 's/.*\///'
)
"
---
In particular, it probably would be better to specify the directories
to search in in a variable...
Michael
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users