Skip to content

Commit

Permalink
home.tmux: fix tprofile completion
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerschtli committed Sep 5, 2023
1 parent 595f839 commit 68fc10f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion home/programs/tmux/tprofile-completion.zsh
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
source @completionLib@

PATH_TO_CONF_DIR="@tmuxProfiles@"

_directory_writable() {
unset ROOT
# shellcheck disable=SC1090
source "${1}"
[[ -z "${ROOT}" || -w "${ROOT}" ]]
}

prefix="@tmuxProfiles@/"
prefix="${PATH_TO_CONF_DIR}/"
suffix=".sh"

for file in "${prefix}"*"${suffix}"; do
Expand Down

0 comments on commit 68fc10f

Please sign in to comment.