diff options
author | Alan Pearce | 2017-04-25 15:01:20 +0200 |
---|---|---|
committer | Alan Pearce | 2017-04-25 15:01:20 +0200 |
commit | 864aee5a0e4f7574b160e68a9767df9687ffcaa2 (patch) | |
tree | b6ba012c47aa96e2965ac8fc17aecc1ced216554 | |
parent | 791213e75647812be5fa1e4ba9ee3a751cf9ab2e (diff) | |
download | dotfiles-864aee5a0e4f7574b160e68a9767df9687ffcaa2.tar.lz dotfiles-864aee5a0e4f7574b160e68a9767df9687ffcaa2.tar.zst dotfiles-864aee5a0e4f7574b160e68a9767df9687ffcaa2.zip |
zsh: Add eb-active-environment function
-rw-r--r-- | zsh/.config/zsh/.zshrc | 4 |
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 |