1
0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2026-01-15 23:08:16 +08:00

Compare commits

..

2 Commits

Author SHA1 Message Date
Marc Cornellà
f776af2a1f Remove redundant bashcompinit calls
Fixes #9246
2020-09-30 19:00:51 +02:00
Andrew Babichev
a8828aad87
terraform: add tf Alias (#8206) 2020-09-30 10:50:33 +02:00
7 changed files with 6 additions and 11 deletions

View File

@ -64,7 +64,6 @@ fi
# AWS CLI v2 comes with its own autocompletion. Check if that is there, otherwise fall back
if command -v aws_completer &> /dev/null; then
autoload -Uz bashcompinit && bashcompinit
complete -C aws_completer aws
else
function _awscli-homebrew-installed() {

View File

@ -10,11 +10,8 @@ if (( ${+commands[compleat]} )); then
local setup="${prefix}/share/compleat-1.0/compleat_setup"
if [[ -f "$setup" ]]; then
if ! bashcompinit >/dev/null 2>&1; then
autoload -U bashcompinit
bashcompinit -i
fi
source "$setup"
fi
unset prefix setup
fi

View File

@ -99,6 +99,4 @@ alias drvg="drush variable-get"
alias drvs="drush variable-set"
# Enable drush autocomplete support
autoload bashcompinit
bashcompinit
source $(dirname $0)/drush.complete.sh

View File

@ -1,4 +1,3 @@
(( $+commands[stack] )) || return
autoload -U +X bashcompinit && bashcompinit
source <(stack --bash-completion-script stack)

View File

@ -2,7 +2,7 @@
Plugin for Terraform, a tool from Hashicorp for managing infrastructure safely and efficiently.
Current as of Terraform v0.11.7
Current as of Terraform v0.13
### Requirements
@ -17,6 +17,7 @@ plugins=(... terraform)
```
* Type `terraform` into your prompt and hit `TAB` to see available completion options
* Type `tf` into your prompt as a short alias to `terraform`
### Expanding ZSH prompt with current Terraform workspace name

View File

@ -7,3 +7,5 @@ function tf_prompt_info() {
echo "[${workspace}]"
fi
}
alias tf='terraform'

View File

@ -138,7 +138,6 @@ alias wpwm='wp widget move'
alias wpwu='wp widget update'
autoload -U +X bashcompinit && bashcompinit
# bash completion for the `wp` command
_wp_complete() {