Sunshine (she/her)@lemmy.ca to Linux@programming.devEnglish · 10 days agoReplace Your Regular Linux Commands With These Better Alternativeswww.maketecheasier.comexternal-linkmessage-square44fedilinkarrow-up1134arrow-down111
arrow-up1123arrow-down1external-linkReplace Your Regular Linux Commands With These Better Alternativeswww.maketecheasier.comSunshine (she/her)@lemmy.ca to Linux@programming.devEnglish · 10 days agomessage-square44fedilink
minus-squarevvv@programming.devlinkfedilinkarrow-up16·10 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·9 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.