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 # }