From 739089633de4a0f54b96e4633689305b3b25eded Mon Sep 17 00:00:00 2001 From: Alexandre CATTEAU Date: Wed, 30 Nov 2022 19:06:38 +0100 Subject: [PATCH] Cut X_user to one line in bashrc --- bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bashrc b/bashrc index 34ec28d..a3f371b 100644 --- a/bashrc +++ b/bashrc @@ -146,7 +146,7 @@ unset TMUX alias touchpad='xinput set-prop 12 "Device Enabled" 1' # Set VNC aliases -X_user=$(who | grep \(: | cut -d " " -f1) +X_user=$(who | grep -m1 \(: | cut -d " " -f1) X_display=$(who | grep \(: | cut -d ":" -f2 | cut -b 1) if id -u gdm > /dev/null 2>&1; then X_gdm_id=$(id -u gdm)