From 943b245cf4b851bccf8a01aa784221e23ff359c4 Mon Sep 17 00:00:00 2001 From: Tony Blyler Date: Mon, 28 Nov 2022 22:27:56 -0500 Subject: [PATCH] Add tailscale zsh alias for MacOS App Store install --- chezmoi/dot_zshenv | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/chezmoi/dot_zshenv b/chezmoi/dot_zshenv index f24beeb..5d7cae1 100644 --- a/chezmoi/dot_zshenv +++ b/chezmoi/dot_zshenv @@ -26,6 +26,13 @@ if [ "$(uname)" = "Darwin" ]; then for d in "${HOMEBREW_PREFIX}/opt"/*/libexec/gnubin; do export PATH="$d:$PATH" done + + for TEST_PATH in /Applications/Tailscale{.localized,}/Tailscale.app/Contents/MacOS/Tailscale; do + if [ -x "$TEST_PATH" ]; then + alias tailscale="$TEST_PATH" + break + fi + done fi if [ -d "${HOME}/bin" ]; then