19 lines
243 B
Bash
Executable file
19 lines
243 B
Bash
Executable file
#!/usr/bin/env zsh
|
|
|
|
: "${1:=--help}"
|
|
|
|
case "$1" in
|
|
-h|--help|help)
|
|
cat <<EOF
|
|
Usage:
|
|
$ goto [label]
|
|
|
|
Change directory to a labeled location.
|
|
See label for label control operations
|
|
EOF
|
|
;;
|
|
|
|
*)
|
|
cd "$(label get "$1")"
|
|
;;
|
|
esac
|