s/terraform/tofu, add tofu completion, check in zsh functions
This commit is contained in:
11
zsh/.zshrc
11
zsh/.zshrc
@@ -1,5 +1,6 @@
|
||||
alias ls='ls --color=auto'
|
||||
alias grep='grep --color'
|
||||
alias vim='nvim'
|
||||
|
||||
fpath+=~/.local/share/zsh/functions
|
||||
|
||||
@@ -20,6 +21,9 @@ if [ "${TERM}" = "xterm" ]; then
|
||||
TERM=xterm-256color
|
||||
fi
|
||||
|
||||
# setup my personal functions
|
||||
autoload -Uz ~/.local/share/zsh/functions/*(.:t)
|
||||
|
||||
#
|
||||
# Prompt setup
|
||||
#
|
||||
@@ -84,7 +88,7 @@ if [ -e $HOME/cfa-work/.zshrc ]; then
|
||||
. $HOME/cfa-work/.zshrc
|
||||
fi
|
||||
|
||||
for env in $HOME/.okta/.env $HOME/.aws/.env $HOME/.config/github/.env $HOME/.config/aichat/.env; do
|
||||
for env in $HOME/.okta/.env $HOME/.config/aws/.env $HOME/.config/github/.env $HOME/.config/aichat/.env; do
|
||||
if [ -r $env ]; then
|
||||
export $(xargs < $env)
|
||||
fi
|
||||
@@ -102,6 +106,9 @@ if command -v aws_completer > /dev/null; then
|
||||
complete -C aws_completer aws
|
||||
fi
|
||||
|
||||
if command -v tofu > /dev/null; then
|
||||
complete -o nospace -C $(command -v tofu) tofu
|
||||
fi
|
||||
|
||||
# Highlight the current autocomplete option
|
||||
zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}"
|
||||
@@ -124,3 +131,5 @@ zstyle :compinstall filename '~/.zshrc'
|
||||
#zstyle :compinstall filename '~/.zshrc'
|
||||
|
||||
#compinit
|
||||
|
||||
complete -o nospace -C /home/cli/dotfiles/zsh/.local/bin/tofu tofu
|
||||
|
||||
Reference in New Issue
Block a user