summaryrefslogtreecommitdiffstats
path: root/.bashrc
diff options
context:
space:
mode:
Diffstat (limited to '.bashrc')
-rw-r--r--.bashrc3
1 files changed, 3 insertions, 0 deletions
diff --git a/.bashrc b/.bashrc
index e23c21d..4446325 100644
--- a/.bashrc
+++ b/.bashrc
@@ -38,6 +38,9 @@ if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
+# Set DISPLAY for SSH sessions.
+{ read -r DISPLAY 0<~/.xdisplay && export DISPLAY; } 2>/dev/null || :
+
for f in $(run-parts --list ~/.bashrc.d); do
. "${f}"
done