From 68fc10f5264e5e97a8f023e6ac9c4f779c6f6eaa Mon Sep 17 00:00:00 2001 From: Tobias Happ Date: Tue, 5 Sep 2023 23:16:07 +0200 Subject: [PATCH] home.tmux: fix tprofile completion --- home/programs/tmux/tprofile-completion.zsh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/home/programs/tmux/tprofile-completion.zsh b/home/programs/tmux/tprofile-completion.zsh index 19b58151..59d3a4fb 100644 --- a/home/programs/tmux/tprofile-completion.zsh +++ b/home/programs/tmux/tprofile-completion.zsh @@ -1,5 +1,7 @@ source @completionLib@ +PATH_TO_CONF_DIR="@tmuxProfiles@" + _directory_writable() { unset ROOT # shellcheck disable=SC1090 @@ -7,7 +9,7 @@ _directory_writable() { [[ -z "${ROOT}" || -w "${ROOT}" ]] } -prefix="@tmuxProfiles@/" +prefix="${PATH_TO_CONF_DIR}/" suffix=".sh" for file in "${prefix}"*"${suffix}"; do