Moved chezmoi data one level down under chezmoi.roots

This commit is contained in:
Lockszmith (Mac@VAST) 2025-04-14 14:05:59 -04:00
parent c34f7ae631
commit de47f0c388
240 changed files with 90 additions and 76 deletions
chezmoi.roots/_src.posix/private_dot_local/bin

View file

@ -0,0 +1,28 @@
#! /usr/bin/env bash
set -e
SCRIPT_NAME="${0##/*}"
usage() {
printf '%s\n' \
'SSH using Teleport with interactive selection and VAST-reasnoble defaults' \
'' \
"${SCRIPT_NAME} " \
'' \
'Usage:' \
''
exit 2
}
if [[ $# -eq 0 ]]; then
usage
fi
SEARCH="$1"
SSHUSER="${SSHUSER:-vastdata}"
TUNNEL="${TUNNEL:+-L ${TUNNEL}}"
TARGET="${SSHUSER}@$(tsh-get "$SEARCH" "$SSHUSER")"
tsh ssh ${TUNNEL} "${TARGET}" "${@:2}"