mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-21 03:41:57 +00:00
0ab87c26c1
Also add tf_prompt_info to the list of prompt functions so theme writers are aware of it
11 lines
318 B
Bash
11 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'
|