weird@sub.wetshaving.social to linuxmemes@lemmy.world · 2 months agoThat is the waysub.wetshaving.socialimagemessage-square10fedilinkarrow-up18arrow-down10
arrow-up18arrow-down1imageThat is the waysub.wetshaving.socialweird@sub.wetshaving.social to linuxmemes@lemmy.world · 2 months agomessage-square10fedilink
minus-squareBappity@lemmy.worldlinkfedilinkEnglisharrow-up2·edit-22 months ago$ cd .. $ ls $ cd .. $ ls “hmm yes… everything seems to be in order”
minus-squareLiveLM@lemmy.ziplinkfedilinkEnglisharrow-up0·edit-22 months agoI need a shell/plugin/tool/whatever that always shows me the content of the current dir in a little popup or something. Anything I do in the shell is like cd this, ls, cd there, ls *, I feel like a have the navigational awareness of a amnesiac goldfish
minus-squareFushuan [he/him]@lemm.eelinkfedilinkarrow-up0·2 months agoPut this in bashrc or whatever flavour of shells’s bashrc you use: function cs () { cd “$@” && ls } I didnt remember the function sintax of bash so I just copied it from SO.
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.
$ cd .. $ ls $ cd .. $ ls
“hmm yes… everything seems to be in order”
I need a shell/plugin/tool/whatever that always shows me the content of the current dir in a little popup or something.
Anything I do in the shell is like cd this, ls, cd there, ls *, I feel like a have the navigational awareness of a amnesiac goldfish
Put this in bashrc or whatever flavour of shells’s bashrc you use:
I didnt remember the function sintax of bash so I just copied it from SO.
You (probably) only want to pass the first argument to
cd
, this’ll send the rest tols
.