Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added OS X completions for open, and seq. Added missing stdout redire…
…ction to /dev/null when checking command's version.
- Loading branch information
1 parent
3868203
commit 96b3e1c
Showing
8 changed files
with
33 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
if test (uname) = 'Darwin' # OS X | ||
complete -c open -s a -d 'Open APP, or open FILE(s), if supplied, with APP' -x -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 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.' | ||
complete -c open -s F -d 'Don\'t restore previous application windows. Except Untitled documents.' | ||
complete -c open -s W -d 'Wait until APP has exited' | ||
complete -c open -s R -d 'Reveal FILE(s) in Finder' | ||
complete -c open -s n -d 'Open new instace of APP' | ||
complete -c open -s g -d 'Open in background' | ||
complete -c open -s h -d 'Finds and opens for a header whose name matches the given string. Better performance with full names i.e. NSView.h' -r | ||
complete -c open -l args -d 'Pass arguments to opened APP in the argv parameter to main()' -x | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
|
||
complete -c seq -s f -l format -d 'Use printf style floating-point FORMAT' | ||
complete -c seq -s s -l separator -d 'Use STRING to separate numbers' | ||
complete -c seq -s w -l equal-width -d 'Equalize width with leading zeroes' | ||
complete -c seq -l help -d 'Display this help' | ||
complete -c seq -l version -d 'Output version information' | ||
if seq --version ^ /dev/null > /dev/null #GNU | ||
complete -c seq -s f -l format -d 'Use printf style floating-point FORMAT' | ||
complete -c seq -s s -l separator -d 'Use STRING to separate numbers' | ||
complete -c seq -s w -l equal-width -d 'Equalize width with leading zeroes' | ||
complete -c seq -l help -d 'Display this help' | ||
complete -c seq -l version -d 'Output version information' | ||
else #OS X | ||
complete -c seq -s f -d 'Use printf style floating-point FORMAT' | ||
complete -c seq -s s -d 'Use STRING to separate numbers' | ||
complete -c seq -s w -d 'Equalize width with leading zeroes' | ||
complete -c seq -s t -d 'Use STRING to terminate sequence of numbers' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters