mirror of
https://github.com/gaschz/dotfiles.git
synced 2025-03-01 14:22:33 +01:00
feat: add function to target minions easily
This commit is contained in:
parent
09bb64f652
commit
e3c8ab8972
8
files/dom0/.local/bin/dom0/qubesctl
Executable file
8
files/dom0/.local/bin/dom0/qubesctl
Executable 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 "${@}"
|
@ -94,9 +94,10 @@ has yt-dlp && alias yt="yt-dlp --add-metadata -ic"
|
|||||||
has fdfind && alias fd="fdfind"
|
has fdfind && alias fd="fdfind"
|
||||||
has lynx && alias lynx="lynx -vikeys"
|
has lynx && alias lynx="lynx -vikeys"
|
||||||
has qubesctl && {
|
has qubesctl && {
|
||||||
alias qubesctl="sudo qubesctl --show-output"
|
|
||||||
alias qctl="qubesctl"
|
alias qctl="qubesctl"
|
||||||
|
alias qctls="qctl state.apply"
|
||||||
alias qctlu="qctl --skip-dom0 --targets"
|
alias qctlu="qctl --skip-dom0 --targets"
|
||||||
|
qctlus(){ test -n "${2-}" || return 1; qubesctl "${1}" state.apply "${2}"; }
|
||||||
}
|
}
|
||||||
has gpg && alias gpgs="gpg --show-keys"
|
has gpg && alias gpgs="gpg --show-keys"
|
||||||
## {{{ Tmux
|
## {{{ Tmux
|
||||||
|
Loading…
x
Reference in New Issue
Block a user