Closed designMoreWeb closed 6 years ago
You can simply add GEOMETRY_PROMPT_PLUGINS=(node exec_time)
to your .zshrc
before sourcing geometry.
Note that this will override the set of default plugins (exec_time
, git
, hg
, jobs
). You can add the ones you like through that variable (e.g. GEOMETRY_PROMPT_PLUGINS=(node exec_time git)
)
i added that but its still not showing in the terminal
export PATH="/Users/Divster/anaconda/bin:$PATH"
GEOMETRY_PROMPT_PLUGINS=(node exec_time git)
ZSH_THEME="geometry/geometry"
Can you try with export
before the variable?
i put export before GEOMETRY_PROMPT_PLUGINS=(node exec_time git) it doesnt work though
Try with geometry_plugin_list
to check if the plugin is registered.
Example output:
▲ ~ geometry_plugin_list
exec_time
jobs
git
node
Remember node
plugin only shows when you're in a node/yarn project. See here.
it says its there but it doesn't display it which is confusing
exec_time has a minimum time before it displays, try something like sleep 31 && echo 'do we see it? ->'
that runs i want to see the node version which is not working
Are you inside a node project? This plugin check for package.json
or yarn.lock
in order to display the node/npm/yarn versions.
@designMoreWeb Also you could try with the following configuration:
GEOMETRY_PROMPT_PLUGINS=(+node exec_time git)
The +
prefix makes a plugin fixed (ie, it always shows up).
@desyncr let me try that out hopefully it works
Okay the good news is i got it working now it shows up as a transparent symbol (node symbol) how do i get it to be a green filled up symbol?
Take a look at the readme. There's a color configuration variable. https://github.com/geometry-zsh/geometry/blob/master/plugins/node/README.md
Should you put that configuration variable in the .zshrc file or it would be somewhere else? Also where do i get a filled up node symbol from the one in the readme is "⬡" which is empty
So quick update i put the GEOMETRY_COLOR_NODE_NPM_VERSION ="green" in my .zshrc file and i am getting this error when i refresh the terminal.
NVM i figured it all out thanks a lot :)
Which configuration worked out?
export GEOMETRY_PROMPT_PLUGINS=(+node virtualenv exec_time git hg)
I am still confused how to add the node and exec_time plugins to the terminal so it displays them.