dotwryn/zsh/school
2019-12-02 10:16:05 -07:00

28 lines
769 B
Bash

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