Logo
Explore Help
Sign In
shell-user/oh-my-zsh
1
0
Fork 0
You've already forked oh-my-zsh
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-05-11 05:55:17 +00:00
Code Issues Projects Releases Wiki Activity
Files
88b3f028f4a2ffa4f3853a11e4b8e0d78008ca34
oh-my-zsh/plugins/terraform/terraform.plugin.zsh

12 lines
297 B
Bash
Raw Normal View History

Fix the terraform function name (#6418) * Fix the terraform function name Current function name do worse. I always use `terr<TAB>` and before those prompt it was add space in the end. Now because we have multiple functions and binaries started with terraform there are no space. * Updated terraform readme Updated the name of new function name
2017-11-14 15:36:22 +01:00
function tf_prompt_info() {
terraform: disable terraform prompt in $HOME (#7227) In the home directory there is a .terraform folder for modules but it is most likely not an actual directory of terraform scripts. Therefore, this patch disables checking for workspace in the home directory.
2018-10-05 14:56:56 -04:00
# dont show 'default' workspace in home dir
[[ "$PWD" == ~ ]] && return
Plugins: Terraform (#6373) Expanded Terraform plugin with function that can be used to show workspace name in the zsh prompt
2017-11-07 16:45:25 +01:00
# check if in terraform dir
if [ -d .terraform ]; then
workspace=$(terraform workspace show 2> /dev/null) || return
echo "[${workspace}]"
fi
}
terraform: add tf Alias (#8206)
2020-09-30 11:50:33 +03:00
alias tf='terraform'
Reference in New Issue Copy Permalink
Powered by Gitea Page: 498ms Template: 1ms
edge-auto
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API