From 70ad723ad4bb10f658cd91bbf24e407e4a58c9a4 Mon Sep 17 00:00:00 2001 From: Mattia Cabrini Date: Tue, 11 Feb 2025 22:17:24 +0100 Subject: [PATCH] Env --- .bashrc | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.bashrc b/.bashrc index 4877bf5..73d46f4 100644 --- a/.bashrc +++ b/.bashrc @@ -1,10 +1,15 @@ # BASHRC -# Environment variables +# Environment variables strictly related to the machine if [ -f ~/.bash_env ]; then . ~/.bash_env fi +# Environment variables +if [ -f ~/.config/some.files/bash/env.sh ]; then + . ~/.config/some.files/bash/env.sh +fi + # To avoid duplicate lines in bash History HISTCONTROL=ignoreboth @@ -95,8 +100,8 @@ for fname in ~/.config/some.files/bash/procedures/*.sh; do done # End Load Procedures -if [ -z "$TMUX" ]; then - tmux +if [ -n "$PS1" -a -z "$TMUX" ]; then + tmux && exit fi if [ -n "$PS1" -a -n "$TMUX" ]; then -- 2.43.0