bash: add disp() function to quickly set DISPLAY (disp.bash)
This commit is contained in:
9
bashrc.d/disp.bash
Normal file
9
bashrc.d/disp.bash
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
function disp() {
|
||||||
|
if [[ $1 =~ ":" ]] ; then
|
||||||
|
VALUE=$1
|
||||||
|
else
|
||||||
|
VALUE=localhost:$1.0
|
||||||
|
fi
|
||||||
|
|
||||||
|
export DISPLAY=$VALUE
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user