zsh-goto/goto

22 lines
251 B
Text
Raw Normal View History

2022-08-17 22:46:24 +00:00
#!/usr/bin/env zsh
2022-08-11 06:11:04 +00:00
2022-11-26 19:08:40 +00:00
set -e
2022-08-11 06:11:04 +00:00
: "${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