xonsh is a Python-powered, cross-platform, Unix-gazing shell language and command prompt
gforsyth on master
Added xontrib-history-encrypt (… (compare)
prompt-toolkit
users. :-)color_tools.py
if xonsh is running with XONSH_SHOW_TRACEBACK
, however after looking at print_exception
in tools.py
, I think it might be better to extract that code and put it in another function, something like should_show_traceback
, and get_traceback_logfile
tools.py
(cd $DIR &&
wget $url &&
unzip $filename)
But as far as syntax why do you need the line continuation inside braces for this kind of thing?
(echo "hello" and \
echo "there")
without the \
I get a syntax error
!
and paste the commands to execute. The shell (bash/zsh/fish) will be found automatically.
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__)