Sunshine (she/her)@lemmy.ca to Linux@programming.devEnglish · 2 months agoReplace Your Regular Linux Commands With These Better Alternativeswww.maketecheasier.comexternal-linkmessage-square31fedilinkarrow-up1117arrow-down111
arrow-up1106arrow-down1external-linkReplace Your Regular Linux Commands With These Better Alternativeswww.maketecheasier.comSunshine (she/her)@lemmy.ca to Linux@programming.devEnglish · 2 months agomessage-square31fedilink
minus-squarevvv@programming.devlinkfedilinkarrow-up15·2 months 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·2 months 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.