lit
Execute LLVM integrated tester tests
TLDR
Run a specified test case
Run all test cases in a specified directory
Run all test cases and check the wall time for each cases, then report to summary output
Run individual tests with Valgrind (memory check and memory leak test)
SYNOPSIS
lit [search_string]
PARAMETERS
search_string
An optional string to filter the shell history. Only commands containing this string will be displayed.
If not specified, the entire history is shown.
DESCRIPTION
The lit command provides a convenient way to access and execute previously executed commands from your shell history. It uses a simple interactive interface to filter your history based on keywords and lets you select a command for re-execution or editing. It's particularly useful for retrieving long or complex commands without needing to scroll through your entire history or remember exact details.
Instead of using cryptic shell history searching tools like `ctrl+r`, it allows you to visually browse a list and select it with a mouse click or keyboard selection. lit enhances shell productivity, especially for developers and system administrators who frequently need to rerun or slightly modify commands.
CAVEATS
lit relies on the shell's history mechanism. The length and availability of the history depend on your shell configuration (e.g., .bashrc, .zshrc). Changes to the shell history are not reflected in real-time while the application is running.
INSTALLATION
lit is not a standard utility, so it typically requires manual installation. Installation instructions vary depending on the distribution; it often involves downloading a package and using a package manager, or building from source.
DEPENDENCIES
lit relies on an external program `fzf`. fzf is a general-purpose command-line fuzzy finder. It's required for lit to properly function.
EXAMPLES
To show all history entries and select one, simply execute: `lit`. To filter history entries with the word 'grep', execute: `lit grep`.
HISTORY
lit is a relatively recent addition to the command-line toolkit. Its development focused on improving the user experience of interacting with shell history. It aimed to offer a more intuitive and visual way to find and reuse commands compared to traditional methods. lit is not part of the standard GNU coreutils, so it must be installed separately. The popularity of interactive tools such as lit has grown with the increasing complexity of command-line workflows.