Support run_java
I probably won't need this as I become more familiar with Java.
This commit is contained in:
parent
6a2d7ef035
commit
9ef4b5bb0a
1 changed files with 9 additions and 0 deletions
|
@ -47,6 +47,15 @@ snipit() {
|
|||
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
|
||||
apts() {
|
||||
# Searches aptitude package repository for $1, surrounding it in ^$ to ensure
|
||||
|
|
Loading…
Reference in a new issue