diff options
author | Ben Burwell <ben@benburwell.com> | 2019-08-13 23:33:32 -0400 |
---|---|---|
committer | Ben Burwell <ben@benburwell.com> | 2019-08-13 23:33:32 -0400 |
commit | 8e4d61fb77ed68f896b6fe3dc0bbbcd078668ede (patch) | |
tree | d521e523316d239caea0bf4a35ce851236dad53e /templates/.zsh/functions/ec2.zsh | |
parent | 7d4c541a0d4f09eb421425f8d49b65308d9e6cfd (diff) |
zsh: adopt
Diffstat (limited to 'templates/.zsh/functions/ec2.zsh')
-rw-r--r-- | templates/.zsh/functions/ec2.zsh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/templates/.zsh/functions/ec2.zsh b/templates/.zsh/functions/ec2.zsh new file mode 100644 index 0000000..dfaf8e1 --- /dev/null +++ b/templates/.zsh/functions/ec2.zsh @@ -0,0 +1,6 @@ +function ec2() { + if [[ "$#" == "0" ]]; then + aws ec2 describe-instances | jq --raw-output 'include "aws"; getInstanceMetadata' | column -t -s $'\t' | sort + fi +} + |