Skip to content

Instantly share code, notes, and snippets.

@pmakholm
Created July 7, 2009 09:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pmakholm/141988 to your computer and use it in GitHub Desktop.
Save pmakholm/141988 to your computer and use it in GitHub Desktop.
# 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