Support run_java

I probably won't need this as I become more familiar with Java.
This commit is contained in:
William Carroll 2019-04-01 18:27:20 +01:00
parent 6a2d7ef035
commit 9ef4b5bb0a

View file

@ -47,6 +47,15 @@ snipit() {
echo "Copied \"$uri\" to your clipboard." echo "Copied \"$uri\" to your clipboard."
} }
# Java
run_java() {
# Usage: run_java path/to/file.java
# Intended to be similar in spirit to Haskell's `runhaskell`.
set -e
javac $1
java ${1%.java}
}
# Aptitude # Aptitude
apts() { apts() {
# Searches aptitude package repository for $1, surrounding it in ^$ to ensure # Searches aptitude package repository for $1, surrounding it in ^$ to ensure