1. 3

    Neat idea. How about making your .bash_history file a named pipe and have the script read from that, instead of using PROMPT_COMMAND?

    1. 4

      I did this at a hackathon. I found it kept having weird sync issues with a lot of shells open, but didn’t have time to fully investigate.

      1. 1

        Won’t this block your shell after a while if the reading process somehow dies?

        1. 1

          Yep. Equally PROMPT_COMMAND could cause delays/hangs depending on connectivity to the remote system.

        2. 1

          That’s a very creative idea that I hadn’t thought of. I did want to avoid interfering with the client system’s history mechanism though.

          1. 1

            Ah, good point!

        1. 2

          Aaand I missed the other post when submitting this: https://lobste.rs/s/mimoad/red_hat_acquire_coreos_expanding_its

          1. 4

            This is a more technical take on the news, compared to that link’s business take.

          1. 4
            vnoremap < <gv
            vnoremap > >gv
            

            gv is pretty nifty.

            1. 1

              That is a top tip indeed!

              1. 1

                I’ve been 20% happier since I discovered that. Wish VSCode’s Vim emulation allowed me to do the same.

            1. 1

              I also make use of many of Tim Pope’s plugins, notably vim-sensible, vim-commentary and vim-fugitive.

              These three are incredibly useful.

              1. 2

                I run a Buildbot cluster for an open source project I host for pretty much this reason, and needing to build on multiple platforms which most of the hosted solutions don’t do.

                I’d be really interested in hosted solutions which can do multiple platforms.

                1. 3

                  @jamesog@mastodon.social although I’ve yet to post there. Honestly I keep forgetting I have it as I don’t have an equivalent of Tweetbot for desktop use.

                  1. 1

                    WASD 105-key ISO with Cherry MX Clear switches.

                    This is the same company that makes the CODE keyboard, but I have no need for backlit keys and prefer to have the number pad on the right, which the CODE lacks.