mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 14:24:39 -07:00
Fix byobu-reconnect-sockets for zsh by setting sh_word_split locally.
This commit is contained in:
parent
ac250c5bd0
commit
4948c9c616
1 changed files with 6 additions and 2 deletions
|
@ -57,8 +57,10 @@ export_and_send () {
|
|||
|
||||
screen_update () {
|
||||
# Ensure that screen's environment variables/values get propagated here
|
||||
# Enable word splitting for zsh:
|
||||
[ "x$ZSH_VERSION" != x ] && setopt local_options sh_word_split
|
||||
tempfile=$(mktemp -q) && {
|
||||
for var in $(echo $VARS_TO_UPDATE); do
|
||||
for var in $VARS_TO_UPDATE; do
|
||||
screen sh -c "echo export $var=\$$var >> \"$tempfile\""
|
||||
done
|
||||
. "$tempfile"
|
||||
|
@ -68,7 +70,9 @@ screen_update () {
|
|||
|
||||
tmux_update () {
|
||||
# Ensure that tmux's environment variables/values get propagated here
|
||||
for var in $(echo $VARS_TO_UPDATE); do
|
||||
# Enable word splitting for zsh:
|
||||
[ "x$ZSH_VERSION" != x ] && setopt local_options sh_word_split
|
||||
for var in $VARS_TO_UPDATE; do
|
||||
expr="$(tmux showenv | grep "^$var=")"
|
||||
if [ -n "$expr" ]; then
|
||||
export "$expr"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue