37 lines
1.1 KiB
Bash
37 lines
1.1 KiB
Bash
################################################################################
|
|
## Shell Config -- Master File
|
|
## Date 2012-07-02
|
|
################################################################################
|
|
|
|
##==============================================================================
|
|
## If not running interactively, don't do anything
|
|
##==============================================================================
|
|
[ -z "$PS1" ] && return
|
|
|
|
|
|
##==============================================================================
|
|
## Base functions
|
|
##==============================================================================
|
|
|
|
isShell()
|
|
{
|
|
if [ "$1" = "$(ps | grep $$ | awk '{print $4}')" ]; then
|
|
return 0
|
|
else
|
|
return 1
|
|
fi
|
|
}
|
|
|
|
##==============================================================================
|
|
## Sourcing
|
|
##==============================================================================
|
|
|
|
SHELLDIR="$HOME/.shell.d"
|
|
|
|
source "${SHELLDIR}/main_rc" # Should be sourced first.
|
|
source "${SHELLDIR}/options_bash"
|
|
source "${SHELLDIR}/funs_rc"
|
|
source "${SHELLDIR}/funs_bash"
|
|
source "${SHELLDIR}/alias_rc"
|
|
source "${SHELLDIR}/personal_rc"
|