Improve Makefile & shell configs
* Add cross platform support in Makefile * Add host-specific configurations support.
This commit is contained in:
11
_bashrc
11
_bashrc
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user