From: Oleg Broytman Date: Sat, 23 May 2020 05:12:38 +0000 (+0300) Subject: .profile: Run `/usr/bin/screen` directly X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=542f2a97ae5094eb88116ffa02fc441ba95dae47;p=dotfiles.git .profile: Run `/usr/bin/screen` directly Avoid detecting and executing `~/bin/screen`. --- 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