Comment on fish shellparentComments−patrickg13ySimplified example: mkdir foo, cd foo. I type in mkdir foo then press enter, type "cd esc-.". Doesn't work. Command completion in fish doesn't help here. In real life this is of course mostly more complicated than a simple "foo".−adiM13yI use zsh and for this use case I typically use "mkdir foo" followed by "cd $!".−0xACE13yfunction mkcd () { mkdir -p "$1" && cd "$1" }−patrickg13yas I wrote: this is a simplified example ...
Comments
Simplified example: mkdir foo, cd foo. I type in mkdir foo then press enter, type "cd esc-.". Doesn't work. Command completion in fish doesn't help here. In real life this is of course mostly more complicated than a simple "foo".
I use zsh and for this use case I typically use "mkdir foo" followed by "cd $!".
function mkcd () { mkdir -p "$1" && cd "$1" }
as I wrote: this is a simplified example ...