Last active
August 29, 2015 14:13
-
-
Save serverwentdown/bcf174df9db3f74592ce to your computer and use it in GitHub Desktop.
Java shat, so that I can just be like `vimjava a` and `:w`
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 | |
echo 'Building...' | |
javac $1.java \ | |
&& ( | |
echo '+-------------OUTPUT-------------+' | |
java $1 | |
echo '+--------------------------------+' | |
) | |
return 0 |
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 | |
vim -c "autocmd BufWritePost * !javarun $1;" $1.java |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment