feat(zsh): Reconfigure terraform completion

This commit is contained in:
Tanguy Herbron 2023-09-14 10:10:10 +02:00
parent 5b8c7040be
commit bbc5652451

8
.zshrc
View File

@ -6,7 +6,7 @@ if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]
fi fi
# Path to your oh-my-zsh installation. # Path to your oh-my-zsh installation.
export ZSH="/home/tanguy/.oh-my-zsh" export ZSH="$HOME/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will # Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case, # load a random theme each time oh-my-zsh is loaded, in which case,
@ -28,6 +28,11 @@ then
source <(kubectl completion zsh) source <(kubectl completion zsh)
fi fi
if [[ $(command -v terraform) ]];
then
complete -o nospace -C /usr/bin/terraform terraform
fi
# User configuration # User configuration
# You may need to manually set your language environment # You may need to manually set your language environment
@ -151,4 +156,3 @@ function preexec {
autoload -U +X bashcompinit && bashcompinit autoload -U +X bashcompinit && bashcompinit
complete -o nospace -C /usr/bin/terraform terraform