Live data from Hacker News

Show HN: Goto – A Linux shell 'cd' replacement tool

github.com

11–20 of 26 posts

Re: Show HN: Goto – A Linux shell 'cd' replacement tool

#11
post #10

I can tell it's not going to be as good - because you know.. 4 letters vs 2. Jokes aside I don't think this provides anything over zsh or fish or another shell that supports directory and tab completion?

When i said minimal, i meant WRT the .bashrc file. I didn't want extra stuff and functions there. Also, this is just cd with a glorified jumping feature. Like i said, it's a better form of 'cd'. You can't compare it to zsh/fish or other shells!!!

Re: Show HN: Goto – A Linux shell 'cd' replacement tool

#12
post #9

If you prefer something automatic that will learn from your own usage, have a look at https://github.com/clvv/fasd

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.

Re: Show HN: Goto – A Linux shell 'cd' replacement tool

#13
post #8
post #7

See also https://github.com/twerth/bashmarks 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.

The problem with this is that it saves all the attribute as functions and messes up the .bashrc file. Eg: to save I use: goto -s while this program uses: s Mine is a little minimal, also, the shortcut thing is just an added feature. I just wanted to replicate the Sublime Texts, fuzzy search feature. I don't think bashmarks has fuzzy-find ??

bashmarks don't have fuzzy search but they have completion. g and I can see the 12 bashmarks I defined. No need to list them. Does goto has completion on bookmark names? That's a killer feature.

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.

Re: Show HN: Goto – A Linux shell 'cd' replacement tool

#14
post #13
post #8

Earlier quoted context omitted.

The problem with this is that it saves all the attribute as functions and messes up the .bashrc file. Eg: to save I use: goto -s while this program uses: s Mine is a little minimal, also, the shortcut thing is just an added feature. I just wanted to replicate the Sublime Texts, fuzzy search feature. I don't think bashmarks has fuzzy-find ??

bashmarks don't have fuzzy search but they have completion. g and I can see the 12 bashmarks I defined. No need to list them. Does goto has completion on bookmark names? That's a killer feature. 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.

Be my guest, just open install.sh or your .bashrc and change alias. im using goto for ". goto" you can use: "a/b/c/d..whatever" for ". goto". Cheers :)

Re: Show HN: Goto – A Linux shell 'cd' replacement tool

#15

This looks cool. I’m going to give it a “check” on my Mac. EDIT: Appears to be working peachy on OS X 10.10.2 with zsh.

Thanks for the MAC test :) I was worried about the privilege problems it may run into.. you know, accessing stuff without sudo/su in Ubuntu/MAC is a nightmare.

Re: Show HN: Goto – A Linux shell 'cd' replacement tool

#18
post #12
post #9

If you prefer something automatic that will learn from your own usage, have a look at https://github.com/clvv/fasd

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 folder…

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.

Re: Show HN: Goto – A Linux shell 'cd' replacement tool

#19
post #12
post #9

If you prefer something automatic that will learn from your own usage, have a look at https://github.com/clvv/fasd

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 folder…

Awesome, looks like it's time for me to replace autojump
Post reply on HN