Quickly navigate your filesystem from the command line
41–50 of 148 posts
Re: Quickly navigate your filesystem from the command line
#42Re: Quickly navigate your filesystem from the command line
#43I'm too lazy to type "jump" so I've modified it to automatically add a Bash alias for each one as well. https://github.com/davejamesmiller/dotfiles/blob/master/.bas...
Unless I'm missing something you also need a function to create all aliases when the shell session starts?
Re: Quickly navigate your filesystem from the command line
#44You might want to check out z: https://github.com/rupa/z
Re: Quickly navigate your filesystem from the command line
#45alias here='pwd | pbcopy'
alias there='cd $(pbpaste)'
So now type `here` in current terminal window and type `there` in new terminal window to move to same directory!
[This works on Mac on other OS you could use xcopy or equivalent clipboard copy program]
Re: Quickly navigate your filesystem from the command line
#46You might want to check out z: https://github.com/rupa/z
I used to use z, but I've since switched to fasd. It's much like z, but also so much better. In addition to being able to do "z " you can do "f ". So, for example, if I've got a rails project I've worked on a lot recently I know its config.ru is high on frecency, so I'll just do "vim `f config`" to edit that file. If I want a file that's not so recent I can always do "vim `f -i config`" to pick from a list of files.
fasd is leaps and bounds above z in functionality, and I've thoroughly enjoyed using it.
Re: Quickly navigate your filesystem from the command line
#47Re: Quickly navigate your filesystem from the command line
#48Re: Quickly navigate your filesystem from the command line
#49Re: Quickly navigate your filesystem from the command line
#50Not sure if the author knows or not, but there exists a BASH environment variable called CDPATH which does the same thing, and is a lot easier to use.