Compare commits

..

3 commits

Author SHA1 Message Date
kake26
f04cc8b80b Update 'README.md'
Fixed git command typo
2022-06-13 16:40:40 +02:00
kake26
d21095c09a Update 'README.md'
Add directions to checkout branch
2022-06-13 16:39:57 +02:00
kake26
1d70677f9b Update 'README.md'
Updated readme and created branches for verious types.
2021-09-25 23:42:47 +02:00
6 changed files with 12 additions and 49 deletions

18
.bashrc
View file

@ -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
View file

0
NOTES Executable file → Normal file
View file

14
README.md Executable file → Normal file
View 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.

View file

@ -1,6 +0,0 @@
#!/bin/bash
# Test module
function moo () {
echo "MOOOO!! $1"
}

View file

@ -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