mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00:00
completions/ezjail-admin: Stringify
Specifically `grep`, these awks are still a bit too annoying to do with `string`.
This commit is contained in:
parent
3043d726bf
commit
a4d728c9de
1 changed files with 2 additions and 2 deletions
|
@ -3,11 +3,11 @@ function __fish_complete_jails
|
|||
end
|
||||
|
||||
function __fish_complete_running_jails
|
||||
ezjail-admin list | tail +3 | grep '^.R' | awk '{ print $4 }'
|
||||
ezjail-admin list | tail +3 | string match -r '^.R' | awk '{ print $4 }'
|
||||
end
|
||||
|
||||
function __fish_complete_stopped_jails
|
||||
ezjail-admin list | tail +3 | grep '^.S' | awk '{ print $4 }'
|
||||
ezjail-admin list | tail +3 | string match -r '^.S' | awk '{ print $4 }'
|
||||
end
|
||||
|
||||
# archive
|
||||
|
|
Loading…
Reference in a new issue