promptops / cli

um is a GPT-powered CLI assistant. Ask questions in plain English, get the perfect shell command.
https://promptops.com
GNU General Public License v3.0
121 stars 3 forks source link

Shell configuration expects .zshrc modification #15

Open seph-barker opened 1 year ago

seph-barker commented 1 year ago

I love um, thank you so much for making it.

I have my zsh setup to do a bunch of initialization in separate files, which are sourced by my .zshrc. So the call to eval "$(um --shell-config)" is not actually done in .zshrc, it is done somewhere else. This means that every time I run um it gives me the following error:

Warning: um is not fully configured. To finish the installation, run:
  eval "$(um --install)"

This is not a big deal, I can just ignore the message, but it would be nice to get rid of it if possible. Maybe have um --install export an environment variable to mark that it's been configured?

jj-ctrlstack commented 1 year ago

Thanks for reporting this and the suggestion. We are on it!