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