Created
February 28, 2012 20:20
-
-
Save aliasbind/1934870 to your computer and use it in GitHub Desktop.
Snipet of victory
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/zsh | |
# Redirects 'make' output to file to be used in a more easier way by vim's QuickFix | |
function compile { | |
if [ $# -ne 0 ]; | |
then | |
shift | |
make $@ 2>&1 | tee /tmp/compile-log | |
else | |
make 2>&1 | tee /tmp/compile-log | |
fi | |
} | |
alias make=compile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment