Improve Makefile & shell configs

* Add cross platform support in Makefile

 * Add host-specific configurations support.
This commit is contained in:
2023-04-07 18:10:19 +02:00
parent ecff222168
commit abe39a16f3
6 changed files with 112 additions and 31 deletions

11
_bashrc
View File

@@ -80,11 +80,21 @@ if [ -x /bin/dircolors ]; then
alias ls='ls --color=auto'
fi
# Host-specific definitions
if [ -f "${HOME}/.host.bashrc" ]; then
. "${HOME}/.host.bashrc"
fi
# Alias definitions
if [ -f "${HOME}/.bash_aliases" ]; then
. "${HOME}/.bash_aliases"
fi
# Host-specific alias definitions
if [ -f "${HOME}/.host.aliases" ]; then
. "${HOME}/.host.aliases"
fi
#colorize stderr
function swapandcolorize()
{
@@ -115,3 +125,4 @@ function swapandcolorize()
return ${PIPESTATUS[0]}
}
export -f swapandcolorize