In bash and zsh I used to write:
alias nb='cd /home/lincoln/Dropbox/nupis/ && jupyter notebook'
But in xonsh this returns an error saying that the command was not found. The tutorial's section on aliases says that I should do something like:
aliases['g'] = 'git status -sb'
I could make this work in the case of only one command, but when I try the two commands of my bash example, it complains that I am giving too many inputs to cd
.
Note: I know I could import the alias from the other shells, but I am interested in learning to do this in xonsh.