Skip to content

Instantly share code, notes, and snippets.

@aliasbind
Created February 28, 2012 20:20
Show Gist options
  • Save aliasbind/1934870 to your computer and use it in GitHub Desktop.
Save aliasbind/1934870 to your computer and use it in GitHub Desktop.
Snipet of victory
#!/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