bash: add disp() function to quickly set DISPLAY (disp.bash)

This commit is contained in:
Paul Walker
2025-10-21 14:04:19 +01:00
parent 36dbb50208
commit 6e083d64f1

9
bashrc.d/disp.bash Normal file
View File

@@ -0,0 +1,9 @@
function disp() {
if [[ $1 =~ ":" ]] ; then
VALUE=$1
else
VALUE=localhost:$1.0
fi
export DISPLAY=$VALUE
}