learnbyexample@programming.dev to Linux@lemmy.mlEnglish · vor 1 JahrNavigating around in your shellblog.meain.ioexternal-linkmessage-square21fedilinkarrow-up176arrow-down14
arrow-up172arrow-down1external-linkNavigating around in your shellblog.meain.iolearnbyexample@programming.dev to Linux@lemmy.mlEnglish · vor 1 Jahrmessage-square21fedilink
minus-squarebeenglinkfedilinkarrow-up2·vor 1 JahrLook into zoxide. z direc Will take you to the most used directory starting with “direc” eg “/home/me/random/directory”
minus-squareExecutive Chimplinkfedilinkarrow-up2·vor 1 JahrI’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-squarebeenglinkfedilinkarrow-up1·edit-2vor 1 JahrThe 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!