Hacker News new | ask | show | jobs
by Pym 4148 days ago
If you prefer something automatic that will learn from your own usage, have a look at https://github.com/clvv/fasd
1 comments

I cannot recommend fasd enough.

If I want to end up in one of my folders, say my "pictures of dogs" folder, I'd just type "z dogs" into my shell and be there because it's part of the path and I visit it frequently.

If I want to work on that ruby script I was writing, I can just type "vim `f backup.rb`", or even just "vim `f back`".

If I know I have many folders that might fit the criterion (e.g. one of my many folders that end in .git/), I can just type "z -i .git" and pick from the frecent list... it's usually near the top because fasd is just magic like that.

I HIGHLY recommend that tool.

For your vim use case, I have v aliased to "f -e vim" so I can just say "v back".

fasd is incredibly useful. Along with l aliased to "ls", it is the first thing I miss on foreign servers.

Awesome, looks like it's time for me to replace autojump