First working copy of autoload
This commit is contained in:
parent
f8ff3fe5b9
commit
67e3a383d7
6 changed files with 47 additions and 0 deletions
18
.bashrc
Executable file
18
.bashrc
Executable file
|
@ -0,0 +1,18 @@
|
|||
#
|
||||
# ~/.bashrc
|
||||
#
|
||||
|
||||
# Stripped of its default items
|
||||
|
||||
function autoload {
|
||||
#echo "Called by $(caller): Couldn't find ${BASH_COMMAND}"
|
||||
if [[ -f modules/${BASH_COMMAND}.bash ]]
|
||||
then
|
||||
source modules/${BASH_COMMAND}.bash
|
||||
${BASH_COMMAND}
|
||||
else
|
||||
echo "I can't find ${BASH_COMMAND}"
|
||||
fi
|
||||
}
|
||||
|
||||
trap autoload ERR
|
Loading…
Add table
Add a link
Reference in a new issue