Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# Have easily editable functions in bash
#
# Usage: Place this script in $FUNCTIONS and call it from you .bashrc.
# Rerun the script each time you add new functions.
FUNCTIONS=$HOME/.lib.sh
eval $(
find $FUNCTIONS -type f | \
while read file ; do echo function $(basename $file)\(\) { source $file\; }\; ; done
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment