chiark / gitweb /
shell-completion: add shell completion for "systemctl help"
[elogind.git] / shell-completion / bash / journalctl
index 1fca5ad31b54285a54070be7aaa1e1f0d4a63d8d..19362ae77b7bfd87936b3b31dc25c05ce7fe69da 100644 (file)
@@ -60,10 +60,10 @@ _journalctl() {
                                 comps=${__journal_fields[*]}
                         ;;
                         --unit|-u)
-                                comps=$(journalctl -F '_SYSTEMD_UNIT')
+                                comps=$(journalctl -F '_SYSTEMD_UNIT' 2>/dev/null)
                         ;;
                         --user-unit)
-                                comps=$(journalctl -F '_SYSTEMD_USER_UNIT')
+                                comps=$(journalctl -F '_SYSTEMD_USER_UNIT' 2>/dev/null)
                         ;;
                         *)
                                 return 0