From bbc565245123b2ae65cbcaae38a9b90d0bbf238f Mon Sep 17 00:00:00 2001 From: Tanguy Herbron Date: Thu, 14 Sep 2023 10:10:10 +0200 Subject: [PATCH] feat(zsh): Reconfigure terraform completion --- .zshrc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.zshrc b/.zshrc index f9bb327..421e118 100644 --- a/.zshrc +++ b/.zshrc @@ -6,7 +6,7 @@ if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]] fi # 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 # load a random theme each time oh-my-zsh is loaded, in which case, @@ -28,6 +28,11 @@ then source <(kubectl completion zsh) fi +if [[ $(command -v terraform) ]]; +then + complete -o nospace -C /usr/bin/terraform terraform +fi + # User configuration # You may need to manually set your language environment @@ -151,4 +156,3 @@ function preexec { autoload -U +X bashcompinit && bashcompinit -complete -o nospace -C /usr/bin/terraform terraform