Skip to content

Instantly share code, notes, and snippets.

@iwill
Last active December 15, 2015 23:50
Show Gist options
  • Save iwill/5343604 to your computer and use it in GitHub Desktop.
Save iwill/5343604 to your computer and use it in GitHub Desktop.
wa mate xx.sh = which xx.sh | xargs mate
# which and
function wa() {
which "$2" | xargs "$1"
}
export -f wa
# which and mate
function wamate() {
wa mate "$1"
}
export -f wamate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment