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)