-
-
Save dbbrian/99d6254b6882fb01ce47 to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
# | |
# Calling Dash from bash | |
# | |
# Usage: | |
# | |
# $ dash something # Search for “something” in the Man Pages docset | |
# $ dash docset something # Search for “something” in the passed docset | |
# | |
# $ dash docset "use quotes for multiword queries" | |
# | |
case "$#" in | |
1) open dash://manpages:"$1" ;; | |
*) open dash://"$1":"${@:2}" ;; | |
esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment