From b2f2fd39ebf621a165e6fe0770a7538a8dfa8173 Mon Sep 17 00:00:00 2001 From: Daniel Carrillo Date: Sat, 12 Oct 2024 19:00:57 +0200 Subject: [PATCH] [.zshrc] Add terraform aliases --- .p10k.zsh | 2 +- .zshrc | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.p10k.zsh b/.p10k.zsh index bf2e320..d05f350 100644 --- a/.p10k.zsh +++ b/.p10k.zsh @@ -1341,7 +1341,7 @@ #[ aws: aws profile (https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-profiles.html) ]# # Show aws only when the command you are typing invokes one of these tools. # Tip: Remove the next line to always show aws. - typeset -g POWERLEVEL9K_AWS_SHOW_ON_COMMAND='aws*|terraform|pulumi|terragrunt|cdk' + typeset -g POWERLEVEL9K_AWS_SHOW_ON_COMMAND='aws*|terraform|tf*|pulumi|terragrunt|cdk' # POWERLEVEL9K_AWS_CLASSES is an array with even number of elements. The first element # in each pair defines a pattern against which the current AWS profile gets matched. diff --git a/.zshrc b/.zshrc index 458b247..529cc3f 100644 --- a/.zshrc +++ b/.zshrc @@ -42,6 +42,7 @@ alias curlr='curl -o /dev/null -w "\n\nCode: \t%{http_code}\n\nDNS: \t%{tim alias disable-hl='ZSH_HIGHLIGHT_MAXLENGTH=0' alias dkillall='docker rm -f $(docker ps -qa)' alias duh='du -sch .[!.]* *' +alias export_sso_creds='eval $(aws-export-credentials --env-export)' alias fdh='fd --hidden --no-ignore --exclude .git' alias gb="git checkout \$(git branch -avv | fzf +m | awk '{print \$1}')" alias icat='kitten icat --align=left' @@ -53,9 +54,11 @@ alias mknamedvenv='mkvirtualenv $(basename $PWD) -r requirements.txt' alias neovim=nvim alias open='xdg-open' alias rgh="rg --hidden --glob '!.git/'" +alias tf=terraform +alias tfa='terraform apply -auto-approve' +alias tfp='terraform plan' alias vim=nvim alias yayU='yay -Suy --noconfirm' -alias export_sso_creds='eval $(aws-export-credentials --env-export)' ##### Functions to be used from command line #####