Forrest logo
back to the xonsh tool

xonsh:tldr:e2748

xonsh: Skip loading the `.xonshrc` configuration file.
$ xonsh --no-rc
try on your machine

The command "xonsh --no-rc" is used to start the xonsh shell without loading any configuration files.

The xonsh shell is a Python-based shell that blends the functionality of a traditional shell with the power of Python. It provides interactive and scriptable access to system resources and network services, allowing users to execute commands, write scripts, and automate various tasks.

By default, xonsh loads the configuration files located in the user's home directory, such as .xonshrc and .xonshrc.py. These configuration files contain settings, aliases, functions, and other customization options for the xonsh shell.

However, when the "--no-rc" option is used with the "xonsh" command, it tells xonsh not to load any of the default configuration files. This means that the shell will start with the default settings and without any user-defined aliases, functions, or other customizations.

This can be useful in situations where you want to start a fresh instance of the xonsh shell without any modifications, or if you want to troubleshoot any issues related to the configuration files.

Example:

xonsh --no-rc

This command will start the xonsh shell without loading any configuration files.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the xonsh tool