From 864aee5a0e4f7574b160e68a9767df9687ffcaa2 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Tue, 25 Apr 2017 15:01:20 +0200 Subject: zsh: Add eb-active-environment function --- zsh/.config/zsh/.zshrc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'zsh') diff --git a/zsh/.config/zsh/.zshrc b/zsh/.config/zsh/.zshrc index c8db8f6..21a52b1 100644 --- a/zsh/.config/zsh/.zshrc +++ b/zsh/.config/zsh/.zshrc @@ -250,4 +250,8 @@ then bindkey '\es' cd-project-widget fi +function function eb-active-environment () { + aws elasticbeanstalk describe-environments | grep $(dig +short $1 CNAME) | cut -f10 +} + unsetopt flow_control # Let me use ^S and ^Q -- cgit 1.4.1