summaryrefslogtreecommitdiff
path: root/.config/fish/functions/_tide_item_terraform.fish
blob: 8d99fb775b1f17fd4c3ee6682bc5797c5ad7b61f (plain)
1
2
3
4
5
6
function _tide_item_terraform
    if path is $_tide_parent_dirs/.terraform
        terraform workspace show | read -l workspace
        test $workspace != default && _tide_print_item terraform $tide_terraform_icon' ' $workspace
    end
end