diff options
author | Joe Hillenbrand <joehillen@gmail.com> | 2021-09-20 23:18:10 -0700 |
---|---|---|
committer | Joe Hillenbrand <joehillen@gmail.com> | 2021-09-20 23:19:46 -0700 |
commit | 6974edd89922f83169c19acd8f3fca3a200028ca (patch) | |
tree | af134a89440baad7993277456e2b295e7218ac56 | |
parent | 37d0d2c3495f803bc0c0b7f0f501495513cad189 (diff) |
Release 1.3.01.3.0
-rw-r--r-- | CHANGELOG.md | 11 | ||||
-rw-r--r-- | PKGBUILD | 2 | ||||
-rw-r--r-- | README.md | 20 | ||||
-rwxr-xr-x | sysz | 5 |
4 files changed, 27 insertions, 11 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 2125e5f..ccfa9c4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [1.3.0] - 2021-09-20 ### Added -- `cat` command back +- `cat` command +- `mask` command +- `unmask` command +- color results based on state +- `ctrl-s` to filter states +- `ctrl-r` to run daemon-reload +- `?` to show keybindings + +### Fixed +- Do not run `status` after `show` ## [1.2.3] - 2021-09-20 ### Fixed @@ -1,7 +1,7 @@ # Maintainer: Joe Hillenbrand (joehillen) <joehillen@gmail.com> pkgname=sysz -pkgver=1.2.3 +pkgver=1.3.0 pkgrel=0 pkgdesc="fzf terminal UI for systemctl" arch=("any") @@ -58,14 +58,10 @@ A utility for using systemctl interactively via fzf. Usage: sysz [OPTS...] [CMD] [-- ARGS...] -Select multiple units and commands using TAB. - sudo is invoked automatically, if necessary. If only one unit is chosen, available commands will be presented -based on the state of the unit (e.g. start is only shows if active). - -Use CTRL-v to run `systemctl cat <unit>` in the preview window. +based on the state of the unit (e.g. "start" only shows if unit is "active"). OPTS: -u, --user Only show --user units @@ -92,11 +88,23 @@ CMD: ARGS are passed to the systemctl command for each selected unit. +Keybindings: + TAB Toggle selection. + ctrl-s Select states to filter with. + ctrl-v 'cat' the unit in the preview window. + ctrl-r Run daemon-reload. + ctrl-p History previous. + ctrl-n History next. + ? Show keybindings. + History: sysz is stored in $XDG_CACHE_HOME/sysz/history This can be changed with the environment variable: SYSZ_HISTORY - Use CTRL-p and CTRL-n to navigate through history. +Some units are colored based on state: + green active + red failed + yellow not-found Examples: sysz -u User units @@ -3,8 +3,8 @@ shopt -s lastpipe shopt -s extglob -SYSZ_VERSION=1.2.3 - +PROG=$(basename "$0") +SYSZ_VERSION=1.3.0 SYSZ_HISTORY=${SYSZ_HISTORY:-${XDG_CACHE_HOME:-~/.cache}/sysz/history} _sysz_keys() { @@ -21,7 +21,6 @@ EOF } _sysz_help() { - PROG=$(basename "$0") cat >&2 <<EOF A utility for using systemctl interactively via fzf. |