Show HN: Goto – A Linux shell 'cd' replacement tool
github.com
github.com
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.
fasd is incredibly useful. Along with l aliased to "ls", it is the first thing I miss on foreign servers.
Edit: what I'm actually using is https://github.com/huyng/bashmarks The original link is what I googled on my phone before being able to check it on the computer.
Anyway I'll give goto a try because goto a_file_name could also be a killer feature. But a short name is also a good thing. I think I'll rename goto to some single letter, maybe t. I hope you don't mind.
Jokes aside I don't think this provides anything over zsh or fish or another shell that supports directory and tab completion?
Also - if the purpose is to save as much typing as possible, why it isnt a bit shorter command than 'goto'? .)
Also, another difference between bashmark and this is that it uses all functionalities as an extension to goto. ie. to save you write" goto -s <shortcut> " instead of "s <shortcut>" this is again done to simplify the .bashrc and remove g/s/l/p functions from being created. Gives me greater control.
That would auto-update when new directories / repos are added later - maybe a useful addition to your tool?
EDIT: Appears to be working peachy on OS X 10.10.2 with zsh.