pull down to refresh

https://m.stacker.news/18462
I've recently switched full-time to Xonsh as my user (not root) shell and find that it can be extremely convenient for both my day job and hobbies. It does all the normal things you'd expect Bash to do:

$ ls /
bin dev home lib media opt run share sys usr
boot etc key lib64 mnt proc root sbin tmp var
$ pwd
/home/user
$ <insert shell cmd here>

But! You can also directly run Python commands in the same place, and do substitutions back and forth between code and shell commands.

$ from math import *
$ cos(0)
1.0
$ f'I like {pi}'
'I like 3.141592653589793'

Evaluate as Python in a shell command with @()

~ $ pushd .
~ $ cd @('/' + 'tmp')
/tmp $ popd
~ $

Capture process output with $()

~ $ 'tmp' in $(ls /)
True

I even have shell functions written in Python defined to automate tasks like extracting a Kicad PCB library from a zip file, performing some edits in the files, and copying them into the correct library path.

p.s. can we get syntax highlighting in Markdown code blocks like how it works in Gitlab?

```python
foo()
```