xonsh is a Python-powered, cross-platform, Unix-gazing shell language and command prompt
cmd = 'ssh user@sshserver.com cat ~/myfile'.split()
$(@(cmd))
should work
ExecAlias
out of the command, and then capture the alias
aliases['__my_piped_cmd__'] = '.... myfile | rg my_search'
$(__my_piped_cmd__)
xontrib
topic and preview images to the xontrib repos. As result we have 34 xontribs in Github Topics - https://github.com/topics/xontrib - and part of them have cute preview images. Take a minute to look and star most interesting!
pip install xontrib-ergopack && xontrib load ergopack
.
![]
calls to be sure that you're in subprocess mode.
from bash to xonsh
Moreover I believe that the question around "xonsh VS bash VS zsh VS etc" is wrong because xonsh has abilities to live with sh-shells under one umbrella. The question is how to use "xonsh AND bash AND zsh and ..." during the work and what is the good patterns of work for this.
For example if you have strong muscle memory on writing bash spells you can just do in xonsh prompt:
bash -c! echo 'spell on bash'
Or use xontrib-sh for short command.