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
e09eb23158c7c75b84b7dafb514dcfa86bd06dc3
oh-my-zsh/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 Page: 99ms 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