aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2020-12-18 05:12:43 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2020-12-18 05:12:43 +0300
commit2794bc190fe304a48bedb45e5b9c5f75640cf11e (patch)
tree5b5fc68816c4f17601f24bcbb1352a9deaf4dfcc
parenttmux: non-login shell by default (diff)
downloadlinux-home-2794bc190fe304a48bedb45e5b9c5f75640cf11e.tar.gz
linux-home-2794bc190fe304a48bedb45e5b9c5f75640cf11e.zip
.bashrc: remove redundant PS1 check
Diffstat (limited to '')
-rw-r--r--%HOME%/.bashrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/%HOME%/.bashrc b/%HOME%/.bashrc
index 5a0ee57..68dda11 100644
--- a/%HOME%/.bashrc
+++ b/%HOME%/.bashrc
@@ -138,6 +138,6 @@ nnn() {
# tmux: start automatically.
# https://unix.stackexchange.com/a/113768
-if command -v tmux &> /dev/null && [ -n "$PS1" ] && [[ ! "$TERM" =~ screen ]] && [[ ! "$TERM" =~ tmux ]] && [ -z "$TMUX" ]; then
+if command -v tmux &> /dev/null && [[ ! "$TERM" =~ screen ]] && [[ ! "$TERM" =~ tmux ]] && [ -z "$TMUX" ]; then
exec tmux new-session -A -s main
fi