fixup! wip
This commit is contained in:
parent
6fe6f44222
commit
983f009f27
1 changed files with 9 additions and 18 deletions
27
.tmux.conf
27
.tmux.conf
|
@ -195,11 +195,11 @@ run 'cut -c3- "$TMUX_CONF" | sh -s _apply_configuration'
|
||||||
# fi
|
# fi
|
||||||
# if [ "$TMUX_PROGRAM" = "tmux" ]; then
|
# if [ "$TMUX_PROGRAM" = "tmux" ]; then
|
||||||
# tmux() {
|
# tmux() {
|
||||||
# command tmux ${TMUX_SOCKET:+-S} ${TMUX_SOCKET:+"$TMUX_SOCKET"} "$@"
|
# command tmux ${TMUX_SOCKET:+-S "$TMUX_SOCKET"} "$@"
|
||||||
# }
|
# }
|
||||||
# else
|
# else
|
||||||
# tmux() {
|
# tmux() {
|
||||||
# "$TMUX_PROGRAM" ${TMUX_SOCKET:+-S} ${TMUX_SOCKET:+"$TMUX_SOCKET"} "$@"
|
# "$TMUX_PROGRAM" ${TMUX_SOCKET:+-S "$TMUX_SOCKET"} "$@"
|
||||||
# }
|
# }
|
||||||
# fi
|
# fi
|
||||||
#
|
#
|
||||||
|
@ -906,7 +906,7 @@ run 'cut -c3- "$TMUX_CONF" | sh -s _apply_configuration'
|
||||||
# if _is_true "$tmux_conf_preserve_stock_bindings"; then
|
# if _is_true "$tmux_conf_preserve_stock_bindings"; then
|
||||||
# probe_socket="$(dirname "$TMUX_SOCKET")/tmux-stock-bindings-$$"
|
# probe_socket="$(dirname "$TMUX_SOCKET")/tmux-stock-bindings-$$"
|
||||||
# TMUX_SOCKET="$probe_socket" tmux -f /dev/null list-keys >> "$cfg"
|
# TMUX_SOCKET="$probe_socket" tmux -f /dev/null list-keys >> "$cfg"
|
||||||
# rm -f "%probe_socket"
|
# rm -f "$probe_socket"
|
||||||
# fi
|
# fi
|
||||||
#
|
#
|
||||||
# # tmux 3.0 doesn't include 02254d1e5c881be95fd2fc37b4c4209640b6b266 and the
|
# # tmux 3.0 doesn't include 02254d1e5c881be95fd2fc37b4c4209640b6b266 and the
|
||||||
|
@ -1609,23 +1609,14 @@ run 'cut -c3- "$TMUX_CONF" | sh -s _apply_configuration'
|
||||||
# fi
|
# fi
|
||||||
# mkdir -p "$TMUX_PLUGIN_MANAGER_PATH"
|
# mkdir -p "$TMUX_PLUGIN_MANAGER_PATH"
|
||||||
#
|
#
|
||||||
# __discover_configuration_files() (
|
# __discover_plugins() {
|
||||||
# IFS=$(printf '\nx')
|
# probe_socket="$(dirname "$TMUX_SOCKET")/tmux-discover-plugins-$$"
|
||||||
# IFS=${IFS%?}
|
# TMUX_SOCKET="$probe_socket" tmux -f /dev/null new-session -dE true \; set-hook -g after-set-option 'set -gFa @all_plugins "#{?#{m:*#{@plugin},#{@all_plugins}},,#{@plugin} }"' \; source "$1" \; show -gqv @all_plugins \; kill-server 2>/dev/null
|
||||||
# ___discover_configuration_files() {
|
# rm -f "$probe_socket"
|
||||||
# for current_file in "$@"; do
|
# }
|
||||||
# current_file="$(cd "${current_file%/*}" 2>/dev/null && pwd)/${current_file##*/}" || continue
|
|
||||||
# [ "$discovered_configuration_files" == "${discovered_configuration_files/$current_file/}" ] || continue
|
|
||||||
# discovered_configuration_files=$(printf '%s\n%s' "$discovered_configuration_files" "$current_file")
|
|
||||||
# ___discover_configuration_files $(tmux source -nvq "$current_file" | perl -s -n -E 's/current_file/\@current_file/g; if (/^$current_file:\d+:\s*source(?:-file)?((?:\s-[qF]+)*)?\s*(["'"'"'])(.+?)\2$/) { if ($1 ne "") { print `tmux set "\@current_file" "$current_file" \\; display -pF "$3" \\; set -u "\@current_file"` } else { say $3 } }' -- -current_file="$current_file")
|
|
||||||
# done
|
|
||||||
# }
|
|
||||||
# ___discover_configuration_files "$@"
|
|
||||||
# printf '%s\n' "$discovered_configuration_files"
|
|
||||||
# )
|
|
||||||
# tpm_plugins=$(cat << EOF | tr ' ' '\n' | awk '/^\s*$/ {next;}; !seen[$0]++ { gsub(/^[ \t]+/,"",$0); gsub(/[ \t]+$/,"",$0); print $0 }'
|
# tpm_plugins=$(cat << EOF | tr ' ' '\n' | awk '/^\s*$/ {next;}; !seen[$0]++ { gsub(/^[ \t]+/,"",$0); gsub(/[ \t]+$/,"",$0); print $0 }'
|
||||||
# $tpm_plugins
|
# $tpm_plugins
|
||||||
# $(IFS=$(printf '\nx'); IFS=${IFS%?}; awk '/^[ \t]*set(-option)?.*[ \t]@plugin[ \t]/ { gsub(/'\''/, ""); gsub(/'\"'/, ""); print $NF }' $(__discover_configuration_files "$TMUX_CONF_LOCAL") 2>/dev/null)
|
# $(__discover_plugins "$TMUX_CONF_LOCAL")
|
||||||
# EOF
|
# EOF
|
||||||
# )
|
# )
|
||||||
# if [ -z "$tpm_plugins" ]; then
|
# if [ -z "$tpm_plugins" ]; then
|
||||||
|
|
Loading…
Reference in a new issue