summaryrefslogtreecommitdiff
path: root/.bashrc
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2022-09-21 22:21:47 -0700
committerSean Whitton <spwhitton@spwhitton.name>2022-09-21 22:44:29 -0700
commitf7d6e749dbe2c6d9add5622b580018a9e0a87326 (patch)
tree92f7aff9c434649d6e726736d947ccbd204a3743 /.bashrc
parent02c6b7bf405b1b44a343c79cabcd33380501e1fe (diff)
downloaddotfiles-f7d6e749dbe2c6d9add5622b580018a9e0a87326.tar.gz
fix upenv for environment variables containing spaces
Diffstat (limited to '.bashrc')
-rw-r--r--.bashrc3
1 files changed, 2 insertions, 1 deletions
diff --git a/.bashrc b/.bashrc
index f1078fb5..5d35be85 100644
--- a/.bashrc
+++ b/.bashrc
@@ -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