diff options
author | Shav Kinderlehrer <[email protected]> | 2023-04-20 13:44:56 -0400 |
---|---|---|
committer | Shav Kinderlehrer <[email protected]> | 2023-04-20 13:45:57 -0400 |
commit | ea97af4f12a2e188b3dcb1d960444796bd2599ba (patch) | |
tree | 28da6ff0cb2bb175ceb7c274a9288466e19e090d /README.md | |
parent | 07c1fe51fb7b1edf6c011e7ec8efeae499a6a2eb (diff) | |
download | lat-ea97af4f12a2e188b3dcb1d960444796bd2599ba.tar.gz lat-ea97af4f12a2e188b3dcb1d960444796bd2599ba.zip |
Socials
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 21 |
1 files changed, 20 insertions, 1 deletions
@@ -1,6 +1,8 @@ # lat > lat | lazy cat - a cat clone with some quality-of-life embellishments +[](https://github.com/secondary-smiles/lat/actions/workflows/c-cpp.yml) + ## About `lat` is a solution to a problem that doesn't exist. It's the awkward middle child in-between `cat` and `bat`. It was created because the author didn't want to have to configure `bat` just to get decent file printing, but wanted a little more control than `cat` offered. @@ -34,9 +36,25 @@ as you can see, the extra features do take their toll on performance, but overall, `lat` is generally nearly on-par with `cat`, and *far* faster than `bat`. +## Install +`lat` is not yet at a stable version (`v1.0.0`), so it is not on any package managers. + +```bash +git clone https://github.com/secondary-smiles/lat.git + +cd lat + +make prep +make + +./build/lat -V + +# now add lat to your $PATH/do whatever you want with the binary +``` + ## Use -`lat` can, for the most part, be a direct drop in for `cat`, however it really shines when embedded into another program. For example, in `fzf` `lat` makes an excellent viewer with the command `fzf --command lat -l {}`. +`lat` can, for the most part, be a direct drop in for `cat`. However it really shines when embedded into another program. For example, in `fzf`, `lat` makes an excellent viewer with the command `fzf --command lat -l {}`.  @@ -55,6 +73,7 @@ int main(void) { pclose(st); } ``` +> UPDATE: this feature is possible, however the data is only printed upon `pclose`. ### Features and Flags |