Skip to content

Commit

Permalink
Added installation section in Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
terminationshock committed Apr 26, 2024
1 parent 01ebf19 commit db85b61
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
lisst
home:terminationshock/
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
24 changes: 23 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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 `<Leap version>` below:

```bash
zypper addrepo --refresh https://download.opensuse.org/repositories/home:/terminationshock/<Leap version>/ 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).
Expand Down
2 changes: 0 additions & 2 deletions bash_completion.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/env bash

lisst_completion() {
COMPREPLY=($(lisst --completion "$COMP_LINE" "$2"))
if [ "${COMPREPLY[0]}" == "-" ]; then
Expand Down

0 comments on commit db85b61

Please sign in to comment.