Compare commits
3 commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
f04cc8b80b | ||
![]() |
d21095c09a | ||
![]() |
1d70677f9b |
6 changed files with 12 additions and 49 deletions
18
.bashrc
18
.bashrc
|
@ -1,18 +0,0 @@
|
|||
#
|
||||
# ~/.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
|
0
LICENSE
Executable file → Normal file
0
LICENSE
Executable file → Normal file
0
NOTES
Executable file → Normal file
0
NOTES
Executable file → Normal file
14
README.md
Executable file → Normal file
14
README.md
Executable file → Normal file
|
@ -1,5 +1,15 @@
|
|||
# Bash-Stash
|
||||
|
||||
# Console
|
||||
A collection of console based bash scripts I've written at various times. It may include scripts written in other languages. To check out this repo you must select a branch you can do this via the following command .
|
||||
|
||||
These are various useful console scripts.
|
||||
git clone -b branch URL
|
||||
|
||||
# Console
|
||||
|
||||
These are daily use type console scripts.
|
||||
|
||||
# OpenWrt
|
||||
|
||||
These are designed to be used with OpenWrt for various tasks.
|
||||
|
||||
Please see the read me in each branch for more info.
|
|
@ -1,6 +0,0 @@
|
|||
#!/bin/bash
|
||||
# Test module
|
||||
|
||||
function moo () {
|
||||
echo "MOOOO!! $1"
|
||||
}
|
23
test.bash
23
test.bash
|
@ -1,23 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -Eeuo pipefail
|
||||
|
||||
# 2>/dev/null
|
||||
|
||||
# Test file
|
||||
|
||||
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
|
||||
|
||||
moo
|
Loading…
Add table
Add a link
Reference in a new issue