style(shell-completion): remove unnecessary backslashes

This commit is contained in:
Eisuke Kawashima
2025-07-14 20:24:25 +09:00
parent 5300aa7a1d
commit 12e64a4848
20 changed files with 74 additions and 74 deletions
+4 -4
View File
@@ -28,18 +28,18 @@ __contains_word () {
__get_machines() {
local a b
{ machinectl list --full --max-addresses=0 --no-legend --no-pager 2>/dev/null; echo ".host"; } | \
{ while read a b; do echo " $a"; done; } | \
{ machinectl list --full --max-addresses=0 --no-legend --no-pager 2>/dev/null; echo ".host"; } |
{ while read a b; do echo " $a"; done; } |
sort -u
}
__get_units_all() {
systemctl list-units --no-legend --no-pager --plain --all $1 | \
systemctl list-units --no-legend --no-pager --plain --all $1 |
{ while read -r a b c; do echo " $a"; done; }
}
__get_services() {
systemctl list-units --no-legend --no-pager --plain -t service --all $1 | \
systemctl list-units --no-legend --no-pager --plain -t service --all $1 |
{ while read -r a b c; do [[ $b == "loaded" ]]; echo " $a"; done; }
}