Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
patrickg
· 13y ago · 0 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".
Comments
[–]
adiM
13y ago
I use zsh and for this use case I typically use "mkdir foo" followed by "cd $!".
[–]
0xACE
13y ago
function mkcd () { mkdir -p "$1" && cd "$1" }
[–]
patrickg
OP
13y ago
as I wrote: this is a simplified example ...