aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Fabian Homborg <FHomborg@gmail.com>2015-03-09 13:09:36 +0100
committerGravatar David Adam <zanchey@ucc.gu.uwa.edu.au>2015-03-11 13:29:18 +0800
commit22103e4849f68106fb9748d56c313220eec36812 (patch)
treec12d658c5ba988405e6422561d4e984cc0ab3163
parente421c12cc4e2575175403dbf88e59d5b06b7977d (diff)
systemctl: Fix devices/slices/scopes/swaps completion
A rogue single-quote meant that a non-existent function '__fish_systemctl_$t' was called
-rw-r--r--share/completions/systemctl.fish4
1 files changed, 3 insertions, 1 deletions
diff --git a/share/completions/systemctl.fish b/share/completions/systemctl.fish
index 748462f9..46b4786b 100644
--- a/share/completions/systemctl.fish
+++ b/share/completions/systemctl.fish
@@ -44,7 +44,9 @@ end
# These are useless for the other commands
# .device in particular creates too much noise
for t in devices slices scopes swaps
- complete -f -c systemctl -n "__fish_seen_subcommand_from status" -a '(eval __fish_systemctl_$t)'
+ for command in status show list-dependencies
+ complete -f -c systemctl -n "__fish_seen_subcommand_from $command" -a "(eval __fish_systemctl_$t)"
+ end
end
complete -f -c systemctl -n "__fish_seen_subcommand_from isolate" -a '(__fish_systemctl_targets)' -d 'Target'