1
0
mirror of https://github.com/dcarrillo/dotfiles.git synced 2024-11-13 06:01:12 +00:00

[.zshrc] Add terraform aliases

This commit is contained in:
Daniel Carrillo 2024-10-12 19:00:57 +02:00
parent 350e0db659
commit b2f2fd39eb
Signed by: dcarrillo
GPG Key ID: E4CD5C09DAED6E16
2 changed files with 5 additions and 2 deletions

View File

@ -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.

5
.zshrc
View File

@ -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 #####