Add teleport tsh support

This commit is contained in:
Lockszmith (@VAST) 2025-04-02 12:52:06 -04:00
parent f2c60d0f72
commit f687debd20
3 changed files with 90 additions and 0 deletions

View file

@ -0,0 +1,11 @@
#!/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