Skip to content

Instantly share code, notes, and snippets.

@rothgar
Created July 2, 2021 20:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rothgar/7d9d77b88162f21654cd6b098b050a5b to your computer and use it in GitHub Desktop.
Save rothgar/7d9d77b88162f21654cd6b098b050a5b to your computer and use it in GitHub Desktop.
Infinidash command
# put this in $HOME/.aws/cli/alias
[toplevel]
infinidash = !f() {
if [ -z "$1" ]; then
cat $HOME/.aws/help.txt
elif test "$1" = "deploy"; then
curl -s -L https://raw.githubusercontent.com/keroserene/rickrollrc/master/roll.sh | bash
elif test "$1" = "help"; then
cat $HOME/.aws/help.txt
else
echo "Command not found. Try help"
fi
}; f
# put this in $HOME/.aws/help.txt
usage: aws [options] <command> <subcommand> [<subcommand> ...] [parameters]
To see help text, you can run:
aws help
aws <command> help
aws <command> <subcommand> help
aws: error: the following arguments are required: deploy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment