updated the custom variables logic to expand $TMUX_CONF_LOCAL before updating status-left or status-right, resolves #783
This commit is contained in:
parent
babf1c1fc6
commit
d84f6bd568
1 changed files with 1 additions and 1 deletions
|
@ -1650,7 +1650,7 @@ run 'cut -c3- "$TMUX_CONF" | sh -s _apply_configuration'
|
|||
# # -- custom variables ------------------------------------------------------
|
||||
#
|
||||
# if [ -f "$TMUX_CONF_LOCAL" ] && [ "$(cut -c3- "$TMUX_CONF_LOCAL" | sh 2>/dev/null -s printf probe)" = "probe" ]; then
|
||||
# replacements=$(perl -n -e 'print if s!^#\s+([^_][^()\s]+)\s*\(\)\s*{\s*(?:#.*)?\n!s%#\\\{\1((?:\\s+(?:[^\{\}]+?|#\\{(?:[^\{\}]+?)\}))*)\\\}%#(cut -c3- \"\\\$TMUX_CONF_LOCAL\" | sh -s \1\\1)%g; !p' "$TMUX_CONF_LOCAL")
|
||||
# replacements=$(perl -n -e 'print if s!^#\s+([^_][^()\s]+)\s*\(\)\s*{\s*(?:#.*)?\n!s%#\\\{\1((?:\\s+(?:[^\{\}]+?|#\\{(?:[^\{\}]+?)\}))*)\\\}%#(cut -c3- '"'"$TMUX_CONF_LOCAL"'"' | sh -s \1\\1)%g; !p' "$TMUX_CONF_LOCAL")
|
||||
# status_left=$(echo "$status_left" | perl -p -e "$replacements" || echo "$status_left")
|
||||
# status_right=$(echo "$status_right" | perl -p -e "$replacements" || echo "$status_right")
|
||||
# fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue