diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2022-09-21 22:21:47 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2022-09-21 22:44:29 -0700 |
commit | f7d6e749dbe2c6d9add5622b580018a9e0a87326 (patch) | |
tree | 92f7aff9c434649d6e726736d947ccbd204a3743 /.bashrc | |
parent | 02c6b7bf405b1b44a343c79cabcd33380501e1fe (diff) | |
download | dotfiles-f7d6e749dbe2c6d9add5622b580018a9e0a87326.tar.gz |
fix upenv for environment variables containing spaces
Diffstat (limited to '.bashrc')
-rw-r--r-- | .bashrc | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -73,8 +73,9 @@ upenv () { # don't want to do this outside of tmux as then tmux show-environment will # show values for the 'default' session which may be irrelevant to us if [ -n "$TMUX" ]; then + local IFS=$'\n' for var in $(tmux show-environment | grep -v "^-"); do - eval "export $var" + eval "export \"$var\"" done fi emacsclient --spw/update-environment |