Last active
December 15, 2015 23:50
-
-
Save iwill/5343604 to your computer and use it in GitHub Desktop.
wa mate xx.sh = which xx.sh | xargs mate
This file contains hidden or 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
# 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