dotfiles/_src.posix/private_dot_config/sz.env/zzz_teleport.env

12 lines
309 B
Bash
Raw Normal View History

2025-04-02 16:52:06 +00:00
#!/usr/bin/env -S bash -c 'echo "Not a user script. source(aka .) only"'
BASE_SHELL=${BASE_SHELL:-${SHELL##*/}}
if is_cmd tsh && tsh version | grep -q '^Teleport'; then
tsh-login() {
command tsh login --proxy=teleport.vastdata.com "${@}"
}
. <(tsh --completion-script-${BASE_SHELL})
fi