Add layered Bash editor environment snippets

This commit is contained in:
Fabio Scotto di Santolo
2026-04-03 22:46:44 +02:00
parent 0081f956df
commit 4aba1e6c42
8 changed files with 39 additions and 0 deletions

View File

@@ -39,6 +39,13 @@ shopt -s cmdhist
[ -d "$HOME/bin" ] && PATH="$HOME/bin:$PATH"
export PATH
if [ -d "$HOME/.bashrc.d" ]; then
for bashrc_file in "$HOME"/.bashrc.d/*.sh; do
[ -r "$bashrc_file" ] || continue
. "$bashrc_file"
done
fi
# =========================
# Aliases (portable)
# =========================
@@ -420,3 +427,5 @@ elif [ "$PLATFORM" = "linux" ]; then
alias df='df -h'
alias du='du -h'
fi
[ -r "$HOME/.bashrc.aliases" ] && . "$HOME/.bashrc.aliases"

View File

@@ -0,0 +1,2 @@
# Additional Bash aliases.
# Keep this file as the extension point for shared aliases.