21 votes

Better CLI Commands

6 comments

  1. [4]
    nathan
    Link
    I saw this on hacker news the other day, but I’m always wary of customizing my shell too much since I’m just going to miss those features when I inevitably have to spend several hours in a remote...

    I saw this on hacker news the other day, but I’m always wary of customizing my shell too much since I’m just going to miss those features when I inevitably have to spend several hours in a remote shell trying to debug something. I’ve long been wanting to figure out a method for having your own personal shell but the information they operate on is the remote machines. Something like a reverse ssh, but I haven’t ever had time to dig into the problem really.

    4 votes
    1. [2]
      SleepyGary
      Link Parent
      If I spend any appreciable amount of time on remote ssh instances I have a tool, called dotbot, which I use to bootstrap my environment quickly, also good for reinstalls of my local machines.

      If I spend any appreciable amount of time on remote ssh instances I have a tool, called dotbot, which I use to bootstrap my environment quickly, also good for reinstalls of my local machines.

      6 votes
      1. nathan
        Link Parent
        Oh that's a cool tool, will definitely be able to use that on my personal machines. But I'm imagining something that works without access to the public internet (e.g. behind a big firewall at...

        Oh that's a cool tool, will definitely be able to use that on my personal machines. But I'm imagining something that works without access to the public internet (e.g. behind a big firewall at work).

        Also your username gave me a laugh :)

        2 votes
    2. Crespyl
      Link Parent
      Depending on exactly what I'm actually doing, tools like Emacs Tramp or sshfs can go a long way. It would still be nice to somehow automatically load a handful of config settings and utility...

      Depending on exactly what I'm actually doing, tools like Emacs Tramp or sshfs can go a long way.

      It would still be nice to somehow automatically load a handful of config settings and utility scripts into a remote shell without actually touching the remote disk at all.

      3 votes
  2. SleepyGary
    Link
    Heading off any comments warning about aliasing cat, bat detects it's being piped and disables all the fancy stuff and essentially works like cat at that point. Remy is a Sharp dude.

    Heading off any comments warning about aliasing cat, bat detects it's being piped and disables all the fancy stuff and essentially works like cat at that point.

    Remy is a Sharp dude.

    2 votes
  3. teaearlgraycold
    (edited )
    Link
    These tools look awesome, in particular bat seems like something I could use regularly. However, instead of prettyping I would prefer to use mtr. If you switch through the display modes (by...

    These tools look awesome, in particular bat seems like something I could use regularly.

    However, instead of prettyping I would prefer to use mtr. If you switch through the display modes (by hitting "d") you can get a waterfall view that will show every hop between you and your destination. On a weak/intermittent connection it makes it much easier to diagnose what's going on.

                                 My traceroute  [v0.87]
    defiant (0.0.0.0)                                     Fri Aug 31 14:21:22 2018
    Keys:  Help   Display mode   Restart statistics   Order of fields   quit
    
                                 Last  49 pings
     1. xxxxxxxxxxxx                                             .................
     2. xxxxxxxxxxxxxxxxxxxxxxxx                                 .................
     3. xxxxxxxxxxxxxxxxxxxxxxxx                                 .................
     4. ???                                                      ?????????????????
     5. xxxxxxxxxxxxxxxxxxxxxxxx                                 .................
     6. xxxxxxxxxxxxxxxxxxxxxxxx                                 .................
     7. ???                                                      ????????????????
     8. xxxxxxxxxxxxxxxxxxxxxxxx                                 ................
     9. be100-1319.bhs-g1-nc5.qc                                 .........>>>....
    10. ???                                                      ????????????????
    11. ???                                                      ????????????????
    12. ???                                                      ????????????????
    13. ???                                                      ????????????????
    14. ns555727.ip-54-39-48.net                                 ................
    
    Scale:  .:3 ms  1:12 ms  2:26 ms  3:47 ms  a:73 ms  b:105 ms  c:143 ms  >
    

    Edit:

    Oh, bat is written in rust. Neat.

    Edit 2:

    This should probably be in ~comp

    2 votes