aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2018-05-23 18:08:01 -0300
committerSilvio Rhatto <rhatto@riseup.net>2018-05-23 18:08:01 -0300
commit4aba33ed415df51bcb48fe011ba8f2f3e003ec1b (patch)
treedb77d8bb94cf8b00de735148cc6f728e9d3c6fa2
parent8464844610b851ca7477b05f71c42890fcc43599 (diff)
downloadhydra-4aba33ed415df51bcb48fe011ba8f2f3e003ec1b.tar.gz
hydra-4aba33ed415df51bcb48fe011ba8f2f3e003ec1b.tar.bz2
List registered hydras
-rwxr-xr-xhydras8
1 files changed, 8 insertions, 0 deletions
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 <hydra1> [<hydra2> ... <hydraN>] -- <command>"
+
+ 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
}