From: Mattia Cabrini Date: Tue, 11 Feb 2025 21:17:24 +0000 (+0100) Subject: Env X-Git-Url: https://git.theboydaily.dev/mattia?a=commitdiff_plain;h=70ad723ad4bb10f658cd91bbf24e407e4a58c9a4;p=some.files.git Env --- 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