summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe Hillenbrand <joehillen@gmail.com>2021-09-20 23:18:10 -0700
committerJoe Hillenbrand <joehillen@gmail.com>2021-09-20 23:19:46 -0700
commit6974edd89922f83169c19acd8f3fca3a200028ca (patch)
treeaf134a89440baad7993277456e2b295e7218ac56
parent37d0d2c3495f803bc0c0b7f0f501495513cad189 (diff)
Release 1.3.01.3.0
-rw-r--r--CHANGELOG.md11
-rw-r--r--PKGBUILD2
-rw-r--r--README.md20
-rwxr-xr-xsysz5
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
diff --git a/PKGBUILD b/PKGBUILD
index ffcd3c2..063d791 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -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")
diff --git a/README.md b/README.md
index 1fdbbbb..841af02 100644
--- a/README.md
+++ b/README.md
@@ -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
diff --git a/sysz b/sysz
index 9aa25f4..12fa509 100755
--- a/sysz
+++ b/sysz
@@ -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.