weird@sub.wetshaving.social to linuxmemes@lemmy.world · 2 months agoThat is the waysub.wetshaving.socialimagemessage-square4linkfedilinkarrow-up12arrow-down10
arrow-up12arrow-down1imageThat is the waysub.wetshaving.socialweird@sub.wetshaving.social to linuxmemes@lemmy.world · 2 months agomessage-square4linkfedilink
minus-squareArtyom@lemm.eelinkfedilinkarrow-up1·2 months agocs () { cd $1; ls ${@:2} } You (probably) only want to pass the first argument to cd, this’ll send the rest to ls.
You (probably) only want to pass the first argument to
cd
, this’ll send the rest tols
.