From c23ab4a7955aa09988dc3da207dd0fbcf943c5d5 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Tue, 05 Jun 2018 16:37:41 -0400 Subject: .bashrc: Read DISPLAY from .xdisplay --- (limited to '.bashrc') 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 -- cgit v0.9.1