From 665d525ba3ae30c41776e5fec4c2c99f1c9e9655 Mon Sep 17 00:00:00 2001 From: Mattia Cabrini Date: Sat, 1 Feb 2025 16:48:50 +0100 Subject: [PATCH] Bash to autorun TMUX && no nf if not interactive --- .bashrc | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.bashrc b/.bashrc index a2a40c4..1e2c63c 100644 --- a/.bashrc +++ b/.bashrc @@ -103,6 +103,12 @@ sunset() { } # End storage -# Eval neofetch, I like it -eval clear -eval neofetch +if [ -z "$TMUX" ]; then + tmux +fi + +if [ -n "$PS1" -a -n "$TMUX" ]; then + # Eval neofetch, I like it + eval clear + eval neofetch +fi -- 2.43.0