Improve CLI for configuring tide
Some commands to simply remove and add items would be useful. Spaceship has some great ideas we can borrow.
A vote for this feature.
I would like to find a way to make node not be a part of _tide_right_items permanently
A vote for this feature. I would like to find a way to make
nodenot be a part of_tide_right_itemspermanently
Have you tried removing node from tide_right_prompt_items?
I tried editing the list by removing node now with:
set -Ux tide_right_prompt_items 'status' 'cmd_duration' 'context' 'jobs' 'virtual_env' 'rustc' 'java' 'php' 'chruby' 'go' 'kubectl' 'toolbox' 'terraform' 'aws' 'nix_shell' 'crystal' 'time'
and it made no changes.
I am able to achieve the removal of the node icon by doing:
set -Ux _tide_right_items 'status' 'cmd_duration' 'context' 'jobs' 'virtual_env' 'time'
and it does work, but only for a while.
I might be taking a strange route for achieving this, please advise on what you had in mind
The set -Ux tide_right_prompt_items ... command you have looks fine, though the -x flag is unnecessary. Just run that command and restart your shell.
After running the set -U tide_right_prompt_items ... command and restarting the shell the node icon is gone.
But after opening a new shell I get this error and tide breaks:
fish: Unknown command: '_tide_item_status cmd_duration context jobs node virtual_env rustc java php chruby go kubectl toolbox terraform aws nix_shell crystal time'
~/.config/fish/functions/_tide_2_line_prompt.fish (line 15):
_tide_item_$item
^~~~~~~~~~~~~~~^
in function '_tide_2_line_prompt'
in command substitution