Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
0 points
patrickg
12y ago
0 comments
Share
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".
undefined | Better HN
0 comments
default
newest
oldest
adiM
12y ago
I use zsh and for this use case I typically use "mkdir foo" followed by "cd $!".
0xACE
12y ago
function mkcd () { mkdir -p "$1" && cd "$1" }
patrickg
OP
12y ago
as I wrote: this is a simplified example ...
j
/
k
navigate · click thread line to collapse