From 542f2a97ae5094eb88116ffa02fc441ba95dae47 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sat, 23 May 2020 08:12:38 +0300 Subject: [PATCH] .profile: Run `/usr/bin/screen` directly Avoid detecting and executing `~/bin/screen`. --- .profile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.profile b/.profile index 7c29d16..5818850 100644 --- a/.profile +++ b/.profile @@ -313,8 +313,7 @@ esac # Stop if non-interactive shell [ -z "$PS1" ] && return -if [ -n "$SSH_CONNECTION" -a -z "$STY" -a -t 0 ] && - which screen >/dev/null 2>&1 +if [ -n "$SSH_CONNECTION" -a -z "$STY" -a -t 0 -a -x /usr/bin/screen ] then - exec screen -xRR -S default + exec /usr/bin/screen -xRR -S default fi -- 2.39.5