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 +}