feat: add function to target minions easily

This commit is contained in:
Ben Grande 2024-06-17 13:50:52 +02:00
parent 09bb64f652
commit e3c8ab8972
No known key found for this signature in database
GPG Key ID: 00C64E14F51F9E56
2 changed files with 10 additions and 1 deletions

View File

@ -0,0 +1,8 @@
#!/bin/sh
# SPDX-FileCopyrightText: 2023 - 2024 Benjamin Grande M. S. <ben.grande.b@gmail.com>
#
# SPDX-License-Identifier: AGPL-3.0-or-later
set -eu
sudo qubesctl --show-output "${@}"

View File

@ -94,9 +94,10 @@ has yt-dlp && alias yt="yt-dlp --add-metadata -ic"
has fdfind && alias fd="fdfind"
has lynx && alias lynx="lynx -vikeys"
has qubesctl && {
alias qubesctl="sudo qubesctl --show-output"
alias qctl="qubesctl"
alias qctls="qctl state.apply"
alias qctlu="qctl --skip-dom0 --targets"
qctlus(){ test -n "${2-}" || return 1; qubesctl "${1}" state.apply "${2}"; }
}
has gpg && alias gpgs="gpg --show-keys"
## {{{ Tmux