From: Silvio Rhatto Date: Wed, 23 May 2018 21:08:01 +0000 (-0300) Subject: List registered hydras X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=4aba33ed415df51bcb48fe011ba8f2f3e003ec1b;p=hydra.git List registered hydras --- 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 }