From 0dcc5197336cbd8058ebc60669a96c57584368d9 Mon Sep 17 00:00:00 2001 From: Gregory Pakosz Date: Sun, 10 Nov 2024 21:51:29 +0100 Subject: [PATCH] wip --- .tmux.conf | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.tmux.conf b/.tmux.conf index 4f3be84..9a2af95 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -1610,8 +1610,8 @@ run 'cut -c3- "$TMUX_CONF" | sh -s _apply_configuration' # mkdir -p "$TMUX_PLUGIN_MANAGER_PATH" # # __discover_plugins() ( -# TMUX_SOCKET="$(dirname "$TMUX_SOCKET")/tmux-discover-plugins-$$" -# tmux -f /dev/null start-server \; set-option exit-empty off +# probe_socket="$(dirname "$TMUX_SOCKET")/tmux-discover-plugins-$$" +# TMUX_SOCKET="$probe_socket" tmux -f /dev/null start-server \; set-option exit-empty off # ___discover_plugins() { # depth=$((${depth:-0} + 1)) # IFS=${_IFS:-$IFS} @@ -1622,16 +1622,16 @@ run 'cut -c3- "$TMUX_CONF" | sh -s _apply_configuration' # if plugin=$(printf '%s\n' "$line" | perl -s -n -E 'print if s/^set-option\s+-g\s+\@plugin\s+//g or die' 2>/dev/null); then # discovered_plugins="${discovered_plugins}${discovered_plugins:+ }${plugin}" # elif next_files=$(printf '%s\n' "$line" | perl -s -n -E 's/(?/dev/null); then -# next_files=$(tmux -f /dev/null \ +# next_files=$(TMUX_SOCKET="$probe_socket" tmux -f /dev/null \ # set -g @current_file "$current_file" \; \ # display -pF "$next_files") -# # shellcheck disable=SC2086 # _IFS="$IFS" # IFS= +# # shellcheck disable=SC2086 # ___discover_plugins $next_files # fi # done << EOF -# $(tmux -f /dev/null source -nvq "$current_file" | perl -s -n -E 'print if s/^$current_file:\d+:\s*(set-option\s+-g\s+\@plugin\s+|source-file)/\1/g' -- -current_file="$current_file") +# $(TMUX_SOCKET="$probe_socket" tmux -f /dev/null source -nvq "$current_file" | perl -s -n -E 'print if s/^$current_file:\d+:\s*(set-option\s+-g\s+\@plugin\s+|source-file)/\1/g' -- -current_file="$current_file") # EOF # done # }