From 6e083d64f13ba32b9b58b759bb9c1d7b5757567a Mon Sep 17 00:00:00 2001 From: Paul Walker Date: Tue, 21 Oct 2025 14:04:19 +0100 Subject: [PATCH] bash: add disp() function to quickly set DISPLAY (disp.bash) --- bashrc.d/disp.bash | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 bashrc.d/disp.bash diff --git a/bashrc.d/disp.bash b/bashrc.d/disp.bash new file mode 100644 index 0000000..fc742b2 --- /dev/null +++ b/bashrc.d/disp.bash @@ -0,0 +1,9 @@ +function disp() { + if [[ $1 =~ ":" ]] ; then + VALUE=$1 + else + VALUE=localhost:$1.0 + fi + + export DISPLAY=$VALUE +}