From 8e4d61fb77ed68f896b6fe3dc0bbbcd078668ede Mon Sep 17 00:00:00 2001 From: Ben Burwell Date: Tue, 13 Aug 2019 23:33:32 -0400 Subject: zsh: adopt --- templates/.zsh/functions/ec2.zsh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 templates/.zsh/functions/ec2.zsh (limited to 'templates/.zsh/functions/ec2.zsh') 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 +} + -- cgit v1.2.3