tide icon indicating copy to clipboard operation
tide copied to clipboard

Improve CLI for configuring tide

Open IlanCosman opened this issue 3 years ago • 5 comments

Some commands to simply remove and add items would be useful. Spaceship has some great ideas we can borrow.

IlanCosman avatar Sep 09 '22 03:09 IlanCosman

A vote for this feature. I would like to find a way to make node not be a part of _tide_right_items permanently

djesic avatar Feb 20 '23 16:02 djesic

A vote for this feature. I would like to find a way to make node not be a part of _tide_right_items permanently

Have you tried removing node from tide_right_prompt_items?

IlanCosman avatar Feb 20 '23 16:02 IlanCosman

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

djesic avatar Feb 21 '23 14:02 djesic

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.

IlanCosman avatar Feb 21 '23 16:02 IlanCosman

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

djesic avatar Feb 23 '23 10:02 djesic