chiark / gitweb /
bus-proxy: also consider ENOTCONN a clean termination condition
[elogind.git] / shell-completion / zsh / _systemctl.in
index 04cd94518a359ed8e4f83620fa45e3f34737c921..7f2d5ac0fa689b7357bfdd3c13e2703f09b03391 100644 (file)
@@ -137,12 +137,11 @@ _filter_units_by_property() {
     unit=${units[i]}
     prop=${(f)"$(_call_program units "$service show --no-pager --property="$property" ${unit} 2>/dev/null")"}
     if [[ "${prop}" = "$property=$value" ]]; then
-      echo " ${unit}"
+      echo -E - " ${unit}"
     fi
   done
 }
 
-_systemctl_all_units() { { __systemctl list-unit-files; __systemctl list-units --all; } | { while read -r a b; do [[ $a =~ @\. ]] || echo -E - " $a"; done; } }
 _systemctl_get_template_names() { __systemctl list-unit-files | { while read -r a b; do  [[ $a =~ @\. ]] && echo -E - " ${a%%@.*}@"; done; } }