Skip to content

Commit

Permalink
Release 1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
joehillen committed Sep 21, 2021
1 parent 37d0d2c commit 6974edd
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 11 deletions.
11 changes: 10 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Maintainer: Joe Hillenbrand (joehillen) <[email protected]>

pkgname=sysz
pkgver=1.2.3
pkgver=1.3.0
pkgrel=0
pkgdesc="fzf terminal UI for systemctl"
arch=("any")
Expand Down
20 changes: 14 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
5 changes: 2 additions & 3 deletions sysz
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand All @@ -21,7 +21,6 @@ EOF
}

_sysz_help() {
PROG=$(basename "$0")
cat >&2 <<EOF
A utility for using systemctl interactively via fzf.
Expand Down

0 comments on commit 6974edd

Please sign in to comment.