diff --git a/zsh/school b/zsh/school deleted file mode 100644 index ef8aa99..0000000 --- a/zsh/school +++ /dev/null @@ -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;