Logo
Explore Help
Sign In
mirrors/ohmyzsh
1
0
Fork 0
You've already forked ohmyzsh
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2025-07-14 16:09:01 +08:00
Code Issues Packages Projects Releases Wiki Activity
ohmyzsh/plugins/terraform/terraform.plugin.zsh

8 lines
195 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() {
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
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 49ms Template: 2ms
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