index
:
sysz
2.0
master
Mirror of https://github.com/joehillen/sysz
matthias
summary
refs
log
tree
commit
diff
stats
log msg
author
committer
range
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
40
space:
pre { line-height: 125%; } td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } .highlight .hll { background-color: #ffffcc } .highlight .c { color: #888888 } /* Comment */ .highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */ .highlight .k { color: #008800; font-weight: bold } /* Keyword */ .highlight .ch { color: #888888 } /* Comment.Hashbang */ .highlight .cm { color: #888888 } /* Comment.Multiline */ .highlight .cp { color: #cc0000; font-weight: bold } /* Comment.Preproc */ .highlight .cpf { color: #888888 } /* Comment.PreprocFile */ .highlight .c1 { color: #888888 } /* Comment.Single */ .highlight .cs { color: #cc0000; font-weight: bold; background-color: #fff0f0 } /* Comment.Special */ .highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */ .highlight .ge { font-style: italic } /* Generic.Emph */ .highlight .ges { font-weight: bold; font-style: italic } /* Generic.EmphStrong */ .highlight .gr { color: #aa0000 } /* Generic.Error */ .highlight .gh { color: #333333 } /* Generic.Heading */ .highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */ .highlight .go { color: #888888 } /* Generic.Output */ .highlight .gp { color: #555555 } /* Generic.Prompt */ .highlight .gs { font-weight: bold } /* Generic.Strong */ .highlight .gu { color: #666666 } /* Generic.Subheading */ .highlight .gt { color: #aa0000 } /* Generic.Traceback */ .highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */ .highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */ .highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */ .highlight .kp { color: #008800 } /* Keyword.Pseudo */ .highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */ .highlight .kt { color: #888888; font-weight: bold } /* Keyword.Type */ .highlight .m { color: #0000DD; font-weight: bold } /* Literal.Number */ .highlight .s { color: #dd2200; background-color: #fff0f0 } /* Literal.String */ .highlight .na { color: #336699 } /* Name.Attribute */ .highlight .nb { color: #003388 } /* Name.Builtin */ .highlight .nc { color: #bb0066; font-weight: bold } /* Name.Class */ .highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ .highlight .nd { color: #555555 } /* Name.Decorator */ .highlight .ne { color: #bb0066; font-weight: bold } /* Name.Exception */ .highlight .nf { color: #0066bb; font-weight: bold } /* Name.Function */ .highlight .nl { color: #336699; font-style: italic } /* Name.Label */ .highlight .nn { color: #bb0066; font-weight: bold } /* Name.Namespace */ .highlight .py { color: #336699; font-weight: bold } /* Name.Property */ .highlight .nt { color: #bb0066; font-weight: bold } /* Name.Tag */ .highlight .nv { color: #336699 } /* Name.Variable */ .highlight .ow { color: #008800 } /* Operator.Word */ .highlight .w { color: #bbbbbb } /* Text.Whitespace */ .highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */ .highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */ .highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */ .highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ .highlight .mo { color: #0000
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.