mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-27 14:45:13 +08:00
systemctl: Fix devices/slices/scopes/swaps completion
A rogue single-quote meant that a non-existent function '__fish_systemctl_$t' was called
This commit is contained in:
parent
e421c12cc4
commit
22103e4849
@ -44,7 +44,9 @@ end
|
|||||||
# These are useless for the other commands
|
# These are useless for the other commands
|
||||||
# .device in particular creates too much noise
|
# .device in particular creates too much noise
|
||||||
for t in devices slices scopes swaps
|
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
|
end
|
||||||
|
|
||||||
complete -f -c systemctl -n "__fish_seen_subcommand_from isolate" -a '(__fish_systemctl_targets)' -d 'Target'
|
complete -f -c systemctl -n "__fish_seen_subcommand_from isolate" -a '(__fish_systemctl_targets)' -d 'Target'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user