xonsh: add page (#5709)

manned-org
bl-ue 2021-04-10 15:18:49 -04:00 committed by GitHub
parent 7d38f9d228
commit 413ddfcca8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 29 additions and 0 deletions

29
pages/common/xonsh.md Normal file
View File

@ -0,0 +1,29 @@
# xonsh
> Python-powered, cross-platform, Unix-gazing shell.
> Write and mix sh/Python code in Xonsh (pronounced conch).
> More information: <https://xon.sh>.
- Start an interactive shell session:
`xonsh`
- Execute a single command and then exit:
`xonsh -c "{{command}}"`
- Run commands from a script file and then exit:
`xonsh {{path/to/script_file.xonsh}}`
- Define environment variables for the shell process:
`xonsh -D{{name1}}={{value1}} -D{{name2}}={{value2}}`
- Load the specified `.xonsh` or `.json` configuration files:
`xonsh --rc {{path/to/file1.xonsh}} {{path/to/file2.json}}`
- Skip loading the `.xonshrc` configuration file:
`xonsh --no-rc`