Hacker Newsnew | past | comments | ask | show | jobs | submit | Midasx's commentslogin

Sorry, I should update the article with the better solution, it's just a few more lines:

https://github.com/bag-man/dotfiles/blob/master/bashrc#L116-...



Yeah, that worked, thank you!


It isn't super clear in the article, but I now use bfs & fzf for replacing cd.

https://github.com/bag-man/dotfiles/blob/master/bashrc#L73

Lets you change directory with alt+c, although I have tweaked it so you always search from your root folder. Which isn't for everyone. Otherwise fzf alt+c doesn't let you go back up directories which gets frustrating.


Hey, bfs author here, glad you've found it useful! You can do that whole thing in one command with

    bfs ~ -nohidden -type d -printf '~/%P\n'


I've just tried this and in my case it leads to "cd \~[...]" which obviously does not work.


That's strange. Maybe just change it to:

    export FZF_ALT_C_COMMAND="bfs -type d -nohidden"
(and install bfs of course)

It won't let you go back up the tree, but if you are clever you can use `cd -` to jump back to your previous location.


I was hoping there would already be a term for it, but I think reflection time works quite well when you think of it as the amount of time it takes to see changes reflected.

But reflection time on it's own sounds like a cringey post-stint review.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: