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