tide icon indicating copy to clipboard operation
tide copied to clipboard

Unknown command terraform

Open jcollado opened this issue 1 year ago • 0 comments

Describe the bug

When I access the directory of a conda or pixi environment which is not activated by default and that environment uses terraform, I get the following error because terraform is not available:

❯ fish: Unknown command: terraform                                                                                                                                           
~/.config/fish/functions/_tide_item_terraform.fish (line 3):                                                                                                                 
        terraform workspace show | string match -v default | read -l w &&                                                                                                    
        ^~~~~~~~^                                                                                                                                                            
in function '_tide_item_terraform'                                                                                                                                           
        called on line 15 of file ~/.config/fish/functions/_tide_2_line_prompt.fish 

Steps to reproduce

  1. Create a test directory with a .terraform subdirectory: mkdir -p /tmp/test/.terraform
  2. Change to the test directory: cd /tmp/test
  3. See error from description

Environment

Output of tide bug-report:

fish version: 3.7.0
tide version: 6.1.1
term: screen-256color
os: 
terminal emulator: gnome-terminal
fish startup: 376.04 millis
fisher plugins: jorgebucaran/fisher meaningful-ooo/sponge ilancosman/tide@v6 jorgebucaran/nvm.fish jethrokuan/z franciscolourenco/done patrickf1/fzf.fish

Additional context

jcollado avatar Oct 16 '24 13:10 jcollado