diff --git a/.gitignore b/.gitignore index 4409514..8ef9aef 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ lisst +home:terminationshock/ diff --git a/Makefile b/Makefile index 8ef85ab..b81b0f1 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ exe=lisst $(exe): go-get - go build -o $(exe) src/* + go build -buildmode pie -ldflags "-s -w" -o $(exe) src/* go-get: go get github.com/rivo/tview diff --git a/README.md b/README.md index 16cdafb..981c694 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,9 @@ # lisst -This tool displays the output of a program as an interactive list allowing you to launch another command for a selected line of interest. +This tools reads from stdin and displays the input as a list. Each line is matched +against a regular expression. Lines can be selected interactively to execute commands built +upon selected matches. ![Screenshot](lisst.gif) @@ -62,6 +64,26 @@ source bash_completion.sh You can run all tests (unit and integration tests) with `make check`. +## Installing + +*lisst* is also available as a package on OpenSUSE. To install it, add the corresponding repository: + +### OpenSUSE Leap 15.5 or later + +Replace `` below: + +```bash +zypper addrepo --refresh https://download.opensuse.org/repositories/home:/terminationshock// terminationshock +zypper install lisst +``` + +### OpenSUSE Tumbleweed + +```bash +zypper addrepo --refresh https://download.opensuse.org/repositories/home:/terminationshock/openSUSE_Tumbleweed/ terminationshock +zypper install lisst +``` + ## License *lisst* is licensed under the [MIT License](LICENSE). diff --git a/bash_completion.sh b/bash_completion.sh index 41fc967..ff5e2b1 100644 --- a/bash_completion.sh +++ b/bash_completion.sh @@ -1,5 +1,3 @@ -#!/usr/bin/env bash - lisst_completion() { COMPREPLY=($(lisst --completion "$COMP_LINE" "$2")) if [ "${COMPREPLY[0]}" == "-" ]; then