Skip to content

Instantly share code, notes, and snippets.

@Loliver1224
Created September 18, 2020 02:13
Show Gist options
  • Save Loliver1224/9540ec613d09f8d60354d6c78df6e126 to your computer and use it in GitHub Desktop.
Save Loliver1224/9540ec613d09f8d60354d6c78df6e126 to your computer and use it in GitHub Desktop.
alias l='exa -alhF --git'
alias p='bat'
alias 2='cd ~/2nd'
alias 3='cd ~/3rd'
alias 4='cd ~/4th'
alias web='cd ~/public_html/webexer/CSS'
alias oop='cd ~/4th/oop'
alias os='cd ~/4th/os'
alias net='cd ~/4th/net'
alias es='cd ~/4th/es'
alias exp='cd ~/4th/exp'
alias ds='cd ~/public_html/DS'
# make new java-file
j() {
while IFS= read line; do
echo "$line" | sed -e "s/\$1/$1/" >> $1".java"
done < ~/4th/oop/Template.txt
vim $1".java"
}
jt() {
while IFS= read line; do
echo "$line" | sed -e "s/\$1/$1Test/" >> $1"Test.java"
done < ~/4th/oop/TestTemplate.txt
vim $1"Test.java"
}
# edit java-file with vim
je() {
vim $1".java"
}
# compile&run java-file
jr() {
javac $1".java" && java $1
}
jc() {
javac $1".java"
}
jct() {
javac $1"Test.java" && java $1"Test"
}
js() {
oop-submit $1 $2".java"
}
alias nyan='$HOME/local/src/nyancat/src/nyancat'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment