added plugins-help message

pull/22/head
Florian Baumann 2010-11-08 21:31:11 +01:00
parent 64eb33844d
commit cecbae54e5
1 changed files with 20 additions and 2 deletions

View File

@ -57,12 +57,30 @@ usage ()
} }
# One thing todo # One thing todo
function t() { function t() {
if [[ "$*" == "" ]] ; then if [[ "$*" == "" ]] ; then
cat ~/.t cat ~/.t
else else
echo "$*" > ~/.t echo "$*" > ~/.t
fi fi
} }
# List all plugins and functions defined by bash-it
function plugins-help() {
echo "bash-it Plugins Help-Message"
echo
set | grep "()" \
| sed -e "/^_/d" | grep -v "BASH_ARGC=()" \
| sed -e "/^\s/d" | grep -v "BASH_LINENO=()" \
| grep -v "BASH_ARGV=()" \
| grep -v "BASH_SOURCE=()" \
| grep -v "DIRSTACK=()" \
| grep -v "GROUPS=()" \
| grep -v "BASH_CMDS=()" \
| grep -v "BASH_ALIASES=()" \
| sed -e "s/()//"
}