diff --git a/_home/dot_sz.shrc.d/11_direnv.env b/_home/dot_sz.shrc.d/11_direnv.env index a956fa5..4429166 100644 --- a/_home/dot_sz.shrc.d/11_direnv.env +++ b/_home/dot_sz.shrc.d/11_direnv.env @@ -13,4 +13,6 @@ if [[ -n "$(which-command direnv)" ]]; then eval "$_DIRENV_ShowEnvLogic | LC_ALL=C sort -h $FILTER" fi } + + alias direnv-allow="direnv allow " fi diff --git a/_home/dot_sz.shrc.d/97_chezmoi_aliases b/_home/dot_sz.shrc.d/97_chezmoi_aliases index 56cedc2..53f413c 100644 --- a/_home/dot_sz.shrc.d/97_chezmoi_aliases +++ b/_home/dot_sz.shrc.d/97_chezmoi_aliases @@ -1,5 +1,8 @@ if [[ -n "$(which-command chezmoi)" ]]; then - alias cdcz="cd $(chezmoi source-path)" + export CZ="$(chezmoi source-path)" + export CHEZMOIROOT="$CZ" + + alias cdcz="cd $CZ" alias czcd="cdcz " alias cz="chezmoi " diff --git a/_home/dot_sz.shrc.d/bash.post/99_kubectl.complete b/_home/dot_sz.shrc.d/bash.post/99_kubectl.complete new file mode 100644 index 0000000..ec93794 --- /dev/null +++ b/_home/dot_sz.shrc.d/bash.post/99_kubectl.complete @@ -0,0 +1,4 @@ +if [[ -n "$(which-command kubectl)" ]]; then + source <( kubectl completion bash ) +fi + diff --git a/_home/dot_sz.shrc.d/bash.pre/10_check_completion b/_home/dot_sz.shrc.d/bash.pre/10_check_completion index 8ad89ce..4b4fe8c 100644 --- a/_home/dot_sz.shrc.d/bash.pre/10_check_completion +++ b/_home/dot_sz.shrc.d/bash.pre/10_check_completion @@ -1,4 +1,5 @@ if [[ -r /usr/share/bash-completion/bash_completion ]]; then BASH_COMPLETION_EXIST=1 + shopt -s direxpand fi diff --git a/_home/private_dot_local/bin/executable_launch-teamviewer-quicksupport.sh b/_home/private_dot_local/bin/executable_launch-teamviewer-quicksupport.sh index fd67af8..8e4af48 100644 --- a/_home/private_dot_local/bin/executable_launch-teamviewer-quicksupport.sh +++ b/_home/private_dot_local/bin/executable_launch-teamviewer-quicksupport.sh @@ -11,13 +11,17 @@ Latest TeamViewer QuickSupport Downloader & Launcher" Refreshing local versino fo TeamViewer QS EOF +TVQS=${TVQS:-$1} #RemoteFile=https://dl.teamviewer.com/download/linux/teamviewer_amd64.deb #RemoteFile=https://download.teamviewer.com/download/linux/teamviewer_amd64.deb #RemoteFile=https://download.teamviewer.com/download/version_11x/teamviewer_qs.tar.gz # Prefer dl.teamviewer.com as it provides the `content-length` header RemoteFile=https://dl.teamviewer.com/download/version_11x/teamviewer_qs.tar.gz LocalFile=~/Downloads/TeamViewerQS.tgz - +if [ "${TVQS}" == "gal" ]; then + RemoteFile='https://customdesignservice.teamviewer.com/download/linux/v15/6fnv7gb/TeamViewerQS.tar.gz' # ?sv=2020-04-08&se=2022-08-11T19%3A34%3A09Z&sr=b&sp=r&sig=b2cQfGcmepA5re6sfBZTg3UODGCFVP3Duvdg9IBw9Wg%3D' + LocalFile=~/Downloads/TeamViewerQS-gal.tgz +fi LocalSize=$(wc -c "$LocalFile" 2>/dev/null | awk '{ print $1 }') RemoteSize=$(curl -sI "$RemoteFile" | awk -v IGNORECASE=1 '/^Content-Length/ {sub("\r",""); print $2}') if [ "$LocalSize" != "$RemoteSize" ]; then @@ -32,7 +36,8 @@ mkdir -p /tmp/tvqs pushd /tmp/tvqs > /dev/null tar xzf "$LocalFile" cd teamviewerqs -echo "Launching TeamViewer Quick Support from $PWD, it should startup in a few seconds..." +echo "Launching TeamViewer Quick Support in the background from $PWD, it should startup in a few seconds..." ./teamviewer & +sleep 8 popd - +printf "TeamViewer launched, you might want to hit if you don't see the prompt\n\n"