zsh-goto/goto.plugin.zsh

11 lines
242 B
Bash
Raw Normal View History

2022-08-17 22:46:24 +00:00
#!/usr/bin/env zsh
2022-08-11 06:11:04 +00:00
# this is a stub, commands are elsewhere
2016-09-30 17:19:41 +00:00
2022-08-11 06:11:04 +00:00
ROOT="$(realpath $(dirname $0))"
2016-09-30 17:19:41 +00:00
2022-08-11 06:11:04 +00:00
# Note that since we manipulate $cwd, goto HAS to be a function.
# So we use this shim to hit the right script.
2016-09-30 17:19:41 +00:00
function goto {
2022-08-11 06:11:04 +00:00
. "$ROOT/goto"
2022-08-11 05:32:51 +00:00
}