]> git.netwichtig.de Git - user/henk/vcsh/zsh.git/commitdiff
add function to list knot master zones
authorHendrik Jäger <gitcommit@henk.geekmail.org>
Sat, 30 Dec 2023 11:49:59 +0000 (12:49 +0100)
committerHendrik Jäger <gitcommit@henk.geekmail.org>
Sat, 30 Dec 2023 11:49:59 +0000 (12:49 +0100)
.zsh_functions/knot_master_zones [new file with mode: 0644]

diff --git a/.zsh_functions/knot_master_zones b/.zsh_functions/knot_master_zones
new file mode 100644 (file)
index 0000000..8770fe0
--- /dev/null
@@ -0,0 +1 @@
+knotc zone-status +role | rg 'role: master' | sed 's/^\[\(.*\).\].*/\1/'