Skip to content

pbar1/zsh-terraform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zsh-terraform

Terraform convenience functions and aliases for ZSH

Install

Depending on your ZSH plugin framework, add the following to your .zshrc:

zplug
zplug "pbar1/zsh-terraform"
Zgen
zgen load pbar1/zsh-terraform
Antigen
antigen bundle pbar1/zsh-terraform

Usage

This is the entire source, I think it speaks for itself:

alias tf=terraform
alias tfw="terraform workspace"

tfv(){
  terraform validate -var-file=vars/$(terraform workspace show).tfvars
}

tfp(){
  terraform plan -var-file=vars/$(terraform workspace show).tfvars
}

tfa(){
  terraform apply -var-file=vars/$(terraform workspace show).tfvars
}

tfc(){
  terraform console -var-file=vars/$(terraform workspace show).tfvars
}

About

Terraform convenience functions and aliases for ZSH

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published