diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2018-05-23 18:08:01 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2018-05-23 18:08:01 -0300 |
commit | 4aba33ed415df51bcb48fe011ba8f2f3e003ec1b (patch) | |
tree | db77d8bb94cf8b00de735148cc6f728e9d3c6fa2 | |
parent | 8464844610b851ca7477b05f71c42890fcc43599 (diff) | |
download | hydra-4aba33ed415df51bcb48fe011ba8f2f3e003ec1b.tar.gz hydra-4aba33ed415df51bcb48fe011ba8f2f3e003ec1b.tar.bz2 |
List registered hydras
-rwxr-xr-x | hydras | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 } |