school navigation utility outclassed by z utility. Removing

This commit is contained in:
Wryn Wagner 2020-09-10 09:35:45 -06:00
parent 80db5479a4
commit 959783bf48

View File

@ -1,30 +0,0 @@
#!/bin/zsh
#
# school() = School Navigation Utility
#
function school() {
cd "$SCHOOL_DIR";
[ -d "$1" ] && cd "$1";
[ -d "$2" ] && cd "$2";
return 0;
}
_school () { # autocompletion
local state
_arguments \
'1: :->class_title'\
':: :->class_child'\
;
case "$state" in
class_title)
compadd $(ls "$SCHOOL_DIR" | grep -v GITIGNORE);
;;
class_child)
compadd $(ls -F "$SCHOOL_DIR/$words[2]" | grep \/);
;;
esac
}
compdef _school school;