school navigation utility outclassed by z utility. Removing
This commit is contained in:
parent
80db5479a4
commit
959783bf48
30
zsh/school
30
zsh/school
@ -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;
|
Loading…
x
Reference in New Issue
Block a user