dotwryn/bash/school

28 lines
797 B
Bash

#!/bin/bash
# -------------------------------------
# -- School (Fall 2019) -------------
# -------------------------------------
alias school="cd $SCHOOL_DIR";
alias classes="echo; cat $SCHOOL_DIR/.classes | lolcat; echo";
#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;
}