From 0edea05e468f6ec8e8a3939b7778812015f3eec8 Mon Sep 17 00:00:00 2001 From: Alexandre CATTEAU Date: Mon, 14 Mar 2022 19:07:55 +0100 Subject: [PATCH] Move extensions to new .bashrc.d structure --- bashrc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/bashrc b/bashrc index 7ceee2f..34ec28d 100644 --- a/bashrc +++ b/bashrc @@ -89,7 +89,7 @@ if [[ $system == "Linux" ]]; then fi fi -# hostname +# hostname TODO could we not get rid of hostname command (not always installed)? # if hostname has 5 parts then host=.secondpart if [[ $(hostname | grep -o "\." | wc -l) -eq 4 ]]; then host='.'$(hostname | cut -f 2 -d '.') @@ -161,7 +161,6 @@ alias vnc-gdm="sudo x11vnc -auth /run/user/$X_gdm_id/gdm/Xauthority -localhost - alias vnc-lightdm='sudo x11vnc -auth /var/run/lightdm/root/:0 -localhost -once -nopw -display :0' # load any additional configuration -for f in ~/.bashrc-*; do - [ -e "$f" ] && . ~/.bashrc-* - break +for f in ~/.bashrc.d/bashrc-*; do + [ -e "$f" ] && source $f done