From: Mattia Cabrini Date: Sat, 1 Feb 2025 15:48:50 +0000 (+0100) Subject: Bash to autorun TMUX && no nf if not interactive X-Git-Url: https://git.theboydaily.dev/mattia?a=commitdiff_plain;h=665d525ba3ae30c41776e5fec4c2c99f1c9e9655;p=some.files.git Bash to autorun TMUX && no nf if not interactive --- 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