summary refs log tree commit diff stats
path: root/zsh
diff options
context:
space:
mode:
authorAlan Pearce2017-04-25 15:01:20 +0200
committerAlan Pearce2017-04-25 15:01:20 +0200
commit864aee5a0e4f7574b160e68a9767df9687ffcaa2 (patch)
treeb6ba012c47aa96e2965ac8fc17aecc1ced216554 /zsh
parent791213e75647812be5fa1e4ba9ee3a751cf9ab2e (diff)
downloaddotfiles-864aee5a0e4f7574b160e68a9767df9687ffcaa2.tar.lz
dotfiles-864aee5a0e4f7574b160e68a9767df9687ffcaa2.tar.zst
dotfiles-864aee5a0e4f7574b160e68a9767df9687ffcaa2.zip
zsh: Add eb-active-environment function
Diffstat (limited to 'zsh')
-rw-r--r--zsh/.config/zsh/.zshrc4
1 files changed, 4 insertions, 0 deletions
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