]> git repos ~mattia - some.files.git/commitdiff
Bash to autorun TMUX && no nf if not interactive
authorMattia Cabrini <dev@mattiacabrini.com>
Sat, 1 Feb 2025 15:48:50 +0000 (16:48 +0100)
committerMattia Cabrini <dev@mattiacabrini.com>
Sat, 1 Feb 2025 15:48:50 +0000 (16:48 +0100)
.bashrc

diff --git a/.bashrc b/.bashrc
index a2a40c4fdc5b2a11cce32bae3f64f4170091bc24..1e2c63cfe427fa7f7770b0ac7ac48c40e1c25339 100644 (file)
--- 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