style(shell-completion): remove unnecessary backslashes
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user