xonsh / xonsh

:shell: Python-powered shell. Full-featured and cross-platform.
http://xon.sh
Other
8.16k stars 633 forks source link

Add cli tool like xonfig web #3877

Closed rapha8l closed 2 months ago

rapha8l commented 3 years ago

Hi

Thanks for xonsh which is great As I often use servers without gui, configuring xonsh is not as easy as having a desktop with a webbrowser It would be great to have a text interface like xonfig web Thanks

Raphaël

For community

⬇️ Please click the 👍 reaction instead of leaving a +1 or 👍 comment

anki-code commented 3 years ago

Hi @rapha8l! Have you tried xonfig wizard? If yes what in xonfig web helps to you in most?

You can find much more in xonfig --help:

$ xonfig --help
usage: xonfig [-h] {info,web,wizard,styles,colors,tutorial,jupyter-kernel} ...

Manages xonsh configuration.

optional arguments:
  -h, --help            show this help message and exit

action:
  {info,web,wizard,styles,colors,tutorial,jupyter-kernel}
    info                displays configuration information, default action
    web                 Launch configurator in browser.
    wizard              Launch configurator in terminal
    styles              prints available xonsh color styles
    colors              preview color style
    tutorial            Launch tutorial in browser.
    jupyter-kernel      Generate xonsh kernel for jupyter.
rapha8l commented 3 years ago

Thanks In fact I missed the styles and colors options, though they are not interactive and you can't set the configuration with them

scopatz commented 3 years ago

Yeah, this tool needs a bit of an overhaul and tightening down to behave more like the web config. PRs very welcome in this space!

rapha8l commented 3 years ago

I'd love to, though I can hardly do a hello world in python :)

anki-code commented 3 years ago

Why you can't just copy xonshrc to the server instead of using wizard? :)

scopatz commented 3 years ago

Well, I think you could in most cases, but it would be good to have a CLI config tool too

rapha8l commented 3 years ago

Indeed I copy my conf to my servers, but it's not very convenient, and I thought it could be useful for others too

rapha8l commented 3 years ago

or maybe have a version that works in a text browser like lynx or w3m

scopatz commented 3 years ago

or maybe have a version that works in a text browser like lynx or w3m

haha wow, that is an amazing idea!

rapha8l commented 3 years ago

thanks :)

anki-code commented 2 months ago

I'm going to close this. You can use local xonfig web to create .xonshrc and reuse it using xxh. It's the right way to operate with RC files.