diff options
Diffstat (limited to '.bashrc')
-rw-r--r-- | .bashrc | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -168,6 +168,17 @@ kill-remote-gpg () { ssh -O exit "$1" } +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 + for var in $(tmux show-environment | grep -v "^-"); do + eval "export $var" + done + fi + update-emacs-daemon-environment +} + # build debs from a Linux kernel source tree *without* calling `make clean`. # # The -dbg deb takes some time to build. To get rid of it when it's |