mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-25 09:41:20 +08:00
0ab87c26c1
Also add tf_prompt_info to the list of prompt functions so theme writers are aware of it
12 lines
318 B
Bash
12 lines
318 B
Bash
function tf_prompt_info() {
|
|
# dont show 'default' workspace in home dir
|
|
[[ "$PWD" == ~ ]] && return
|
|
# check if in terraform dir
|
|
if [[ -d .terraform && -r .terraform/environment ]]; then
|
|
workspace=$(cat .terraform/environment) || return
|
|
echo "[${workspace}]"
|
|
fi
|
|
}
|
|
|
|
alias tf='terraform'
|