Navigating around in your shellblog.meain.io learnbyexample ( @learnbyexample@programming.dev ) Linux@lemmy.mlEnglish • 10 months ago message-square10fedilinkarrow-up143
arrow-up143external-linkNavigating around in your shellblog.meain.io learnbyexample ( @learnbyexample@programming.dev ) Linux@lemmy.mlEnglish • 10 months ago message-square10fedilink
minus-square beeng ( @beeng@discuss.tchncs.de ) linkfedilink1•10 months agoLook into zoxide. z direc Will take you to the most used directory starting with “direc” eg “/home/me/random/directory”
minus-square Executive Chimp ( @executivechimp@discuss.tchncs.de ) linkfedilink2•10 months agoI’ve tried things like that before but never got on with them. I found when I had many projects with similar directory structures it was easy to end up in the wrong place and took more thought to get to the right place than just cding
minus-square beeng ( @beeng@discuss.tchncs.de ) linkfedilink1•edit-210 months agoThe dir’s are the same names or similar? A few extra key strokes to get the fullname should be easier than cd’ing back and forth. There’s also z foo “space” “tab” as per docs to get interactive list for matches. But, just a suggestion!
Look into zoxide.
z direc
Will take you to the most used directory starting with “direc” eg “/home/me/random/directory”
I’ve tried things like that before but never got on with them. I found when I had many projects with similar directory structures it was easy to end up in the wrong place and took more thought to get to the right place than just cding
The dir’s are the same names or similar? A few extra key strokes to get the fullname should be easier than cd’ing back and forth.
There’s also z foo “space” “tab” as per docs to get interactive list for matches.
But, just a suggestion!