dotwryn/bash/school

32 lines
817 B
Plaintext
Raw Normal View History

#!/bin/bash
SCHOOL_DIR="$HOME/Documents/School";
# -------------------------------------
2019-09-06 17:54:27 +00:00
# -- School (Fall 2019) -------------
# -------------------------------------
2019-09-06 17:54:27 +00:00
alias school="cd $SCHOOL_DIR";
2019-09-06 17:54:27 +00:00
alias classes='cat ~/Documents/School/.classes'
alias cs5680='school; cd cs5680__computer_vision';
alias compvis='cs5680'
alias cs5600='school; cd cs5600__intelligent_systems';
alias intsys='cs5600'
alias engr3080='school; cd engr3080__tech_writing';
alias techwrit='engr3080'
alias phil1120='school; cd phil1120__social_ethics';
alias socioet='phil1120'
HW_TEMPLATE="$DOTWRYN/latex/homework_template.tex"
function hw() {
# Make new homework .tex from default template
[ ! $1 ] && echo "Homework filename required" && exit 1;
NEW_HW="./$1.tex";
[ ! -f $NEW_HW ] && cp $HW_TEMPLATE $NEW_HW;
vim $NEW_HW;
}