summaryrefslogtreecommitdiff
path: root/.bashrc
diff options
context:
space:
mode:
Diffstat (limited to '.bashrc')
-rw-r--r--.bashrc11
1 files changed, 11 insertions, 0 deletions
diff --git a/.bashrc b/.bashrc
index 10b264ba..fdd6683a 100644
--- a/.bashrc
+++ b/.bashrc
@@ -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