From 4aba33ed415df51bcb48fe011ba8f2f3e003ec1b Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Wed, 23 May 2018 18:08:01 -0300 Subject: List registered hydras --- hydras | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/hydras b/hydras index 6810898..ef5e27c 100755 --- a/hydras +++ b/hydras @@ -23,6 +23,14 @@ BASENAME="`basename $0`" function usage { echo "usage: $BASENAME [ ... ] -- " + + if [ -d "$HOME/.hydra" ]; then + echo "registered hydras:" + echo "" + ls -1 $HOME/.hydra | grep -v '^config$' | sort | xargs -L 6 | column -t -c 6 | sed -e 's/^/\t/' + echo "" + fi + exit 1 } -- cgit v1.2.3