Performance optimizations for the shell prompt

Posted on May 27, 2021. Filed under: Uncategorized | Tags: , , , , , , , |

Performance optimizations for the shell prompt

There is a lot of useful information that can be shown in a shell prompt, like the current state of a git repository, information about background jobs, or information about the last executed commands. But each of those could have the potential to make the prompt feel slow. We will use hyperfine to quantify this slowness, and then look at ways to try to optimize it.

hyperfine [github] is a neat program for benchmarking.

via r/bash

Liked it here?
Why not try sites on the blogroll...