From 07e0ac53a2418352978b91c558b73af75d2cd084 Mon Sep 17 00:00:00 2001 From: fabian Date: Sat, 24 Sep 2022 14:52:22 +0200 Subject: [PATCH] generally allow different/ custom bash aliases files --- home_external/.bashrc | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/home_external/.bashrc b/home_external/.bashrc index 386b07d..f897189 100644 --- a/home_external/.bashrc +++ b/home_external/.bashrc @@ -134,16 +134,12 @@ alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo # See /usr/share/doc/bash-doc/examples in the bash-doc package. if [ -f ~/.bash_aliases ]; then - . ~/.bash_aliases + source ~/.bash_aliases fi -if [ -f ~/.bash_aliases_extra ]; then - . ~/.bash_aliases_extra -fi - -if [ -f ~/.bash_aliases_local ]; then - . ~/.bash_aliases_local -fi +for file in ~/.bash_aliases_*; do + source $file +done # enable programmable completion features (you don't need to enable # this, if it's already enabled in /etc/bash.bashrc and /etc/profile