you are viewing a single comment's thread
view the rest of the comments
[–] 198 points 1 year ago* (19 children)
$ cd ..
$ ls
$ cd ..
$ ls

"hmm yes.. everything seems to be in order"

  • source
  • hideshow 19 child comments
  • [–] 42 points 1 year ago* (11 children)

    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

  • source
  • parent
  • hideshow 11 child comments
  • [–] 22 points 1 year ago (2 children)

    Put 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.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 21 points 1 year ago (1 child)
    cs () {
        cd $1;
        ls ${@:2}
    }
    

    You (probably) only want to pass the first argument to cd, this'll send the rest to ls.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 5 points 1 year ago

    Did that years ago, just called it cds. I also have an "up" command which is an alias to "cds ..". Oh, and I have a "setup server_name" they copy all my aliases to a server and create an alias that allow me to "ssh -A server_name" using only server_name.

  • source
  • parent
  • [–] 10 points 1 year ago

    Alternatively, you could use a TUI file manager. Once you get the navigation down you can manage things pretty quickly. Especially with ones that have options for dual directory layouts, like Midnight Commander or vifm.

  • source
  • parent
  • [–] 6 points 1 year ago (3 children)

    It is called windows 2000 explorer and it's great for file operations :) In Linux i have yet to find a really good replacement ;(

  • source
  • parent
  • hideshow 3 child comments
  • [–] 4 points 1 year ago (2 children)

    pwd seems more appropriate than ls

  • source
  • parent
  • hideshow 2 child comments