mattweinberg
Joined 10 years ago
Karma
357
Submissions
39
Member since
Jul 11
Co-founder and President of Technology at Happy Cog (https://www.happycog.com). [email protected]
View on Hacker NewsJoined 10 years ago
This came automatically for us as our kids got old enough to go to school. You naturally meet lots of parents in your community with kids the same ages as yours, through school activities and extracurriculars.
alias jf="cd \$(sort -nr ~/Library/autojump/autojump.txt | awk 'BEGIN {FS = \"\\t\"} {print \$2}' | fzf)"
or without the escaping: cd $(sort -nr ~/Library/autojump/autojump.txt | awk 'BEGIN {FS = "\t"} {print $2}' | fzf)
It gets my autojump history, sorts it by most used on top, extracts just the directory names, pipes the list to `fzf` and `cd`s into the selection. It's great because my most-used directories will be right on top of the `fzf` list.