Sunshine (she/her)@lemmy.ca to Linux@programming.devEnglish · 7 days agoReplace Your Regular Linux Commands With These Better Alternativeswww.maketecheasier.comexternal-linkmessage-square44fedilinkarrow-up1132arrow-down111
arrow-up1121arrow-down1external-linkReplace Your Regular Linux Commands With These Better Alternativeswww.maketecheasier.comSunshine (she/her)@lemmy.ca to Linux@programming.devEnglish · 7 days agomessage-square44fedilink
minus-squarevvv@programming.devlinkfedilinkarrow-up16·7 days agomost shells have a CDPATH which works just like PATH but for directories. set it to $HOME/projects/:$HOME/porn/ or whatever, and you’ll get the subdirectories in your cd tab completion, without installing extra stuff
minus-squareVictor@lemmy.worldlinkfedilinkarrow-up3·6 days agoBut zoxide updates automatically, where you have to update CDPATH manually.
most shells have a CDPATH which works just like PATH but for directories. set it to
$HOME/projects/:$HOME/porn/
or whatever, and you’ll get the subdirectories in yourcd
tab completion, without installing extra stuffBut zoxide updates automatically, where you have to update CDPATH manually.