From e6b701af99d3dc1b9eb2f2c1bba66ddb99f5946a Mon Sep 17 00:00:00 2001 From: Gal Szkolnik Date: Wed, 10 Aug 2022 15:07:56 -0400 Subject: [PATCH] Adding tmux-bash-completion as external source --- _home/.chezmoiexternal.toml | 6 ++++++ _home/dot_sz.shrc.d/34_tmux.tools | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/_home/.chezmoiexternal.toml b/_home/.chezmoiexternal.toml index 2c8391c..3d1a88a 100644 --- a/_home/.chezmoiexternal.toml +++ b/_home/.chezmoiexternal.toml @@ -23,6 +23,12 @@ # clone.args = ["--depth=1"] # refreshPeriod = "168h" # 7 days +[".local/share/bash-completion/tmux"] + type = "git-repo" + url = "https://github.com/imomaliev/tmux-bash-completion" + clone.args = ["--depth=1","--single-branch"] + refreshPeriod = "168h" # 7 days + [".local/share/fonts/NF_CodeNewRoman"] type = "archive" # url = "https://github.com/ryanoasis/nerd-fonts/releases/download/v2.1.0/CodeNewRoman.zip" diff --git a/_home/dot_sz.shrc.d/34_tmux.tools b/_home/dot_sz.shrc.d/34_tmux.tools index a5befad..fd899de 100644 --- a/_home/dot_sz.shrc.d/34_tmux.tools +++ b/_home/dot_sz.shrc.d/34_tmux.tools @@ -2,4 +2,8 @@ if [[ -n "$(which-command tmux)" ]]; then function clip-tmux() { tmux save-buffer -a - | clip } + + __C="$HOME/.local/share/bash-completion/tmux/completions/tmux" + [[ -r $__C ]] && . <( cat $__C ) + unset __C fi