mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-23 07:05:26 +08:00
feat(comp): update to systemd 257
(cherry picked from commit 7accf4ffa1febcbfe2d6a90222fc573be7fe4f9a)
This commit is contained in:
parent
e1349b9c4a
commit
6d7a7c2254
@ -1,21 +1,23 @@
|
||||
#
|
||||
# Completion for run0
|
||||
#
|
||||
function __run0_slice
|
||||
systemctl -t slice --no-legend --no-pager --plain | string split -nf 1 ' '
|
||||
systemctl -t slice --user --no-legend --no-pager --plain | string split -nf 1 ' '
|
||||
end
|
||||
|
||||
complete -c run0 -l no-ask-password -d 'Do not query the user for authentication for privileged operations'
|
||||
complete -c run0 -l unit -d 'Use this unit name instead of an automatically generated one'
|
||||
complete -c run0 -l property -d 'Sets a property on the service unit that is created'
|
||||
complete -c run0 -l description -d 'Provide a description for the service unit that is invoked'
|
||||
complete -c run0 -l slice -d 'Make the new .service unit part of the specified slice, instead of user.slice.'
|
||||
complete -c run0 -l slice-inherit -d 'Make the new .service unit part of the slice the run0 itself has been invoked in'
|
||||
complete -c run0 -s u -l user -a "(__fish_complete_users)" -x -d "Switches to the specified user instead of root"
|
||||
complete -c run0 -s g -l group -a "(__fish_complete_groups)" -x -d "Switches to the specified group instead of root"
|
||||
complete -c run0 -l nice -d 'Runs the invoked session with the specified nice level'
|
||||
complete -c run0 -s D -l chdir -d 'Runs the invoked session with the specified working directory'
|
||||
complete -c run0 -l setenv -d 'Runs the invoked session with the specified environment variable set'
|
||||
complete -c run0 -l background -d 'Change the terminal background color to the specified ANSI color'
|
||||
complete -c run0 -l machine -d 'Execute operation on a local container'
|
||||
complete -c run0 -s h -l help -d 'Print a short help text and exit'
|
||||
complete -c run0 -l version -d 'Print a short version string and exit'
|
||||
|
||||
complete -c run0 -x -a '(__fish_complete_subcommand)'
|
||||
complete -c run0 -xa "(__fish_complete_subcommand)"
|
||||
complete -c run0 -s h -l help -d "Show help"
|
||||
complete -c run0 -s V -l version -d "Show version"
|
||||
complete -c run0 -s u -l user -d "Switches to the specified user instead of root" -xa "(__fish_complete_users)"
|
||||
complete -c run0 -s g -l group -d "Switches to the specified group instead of root" -xa "(__fish_complete_groups)"
|
||||
complete -c run0 -l no-ask-password -d "Do not query the user for authentication for privileged operations"
|
||||
complete -c run0 -l machine -d "Execute operation on a local container" -xa "(machinectl list --no-legend --no-pager | string split -f 1 ' ')"
|
||||
complete -c run0 -l property -d "Sets a property on the service unit that is created" -x
|
||||
complete -c run0 -l description -d "Description for unit" -x
|
||||
complete -c run0 -l slice -d "Make the new .service unit part of the specified slice, instead of user.slice." -xa "(__run0_slice)"
|
||||
complete -c run0 -l slice-inherit -d "Make the new .service unit part of the slice the run0 itself has been invoked in"
|
||||
complete -c run0 -l nice -d "Runs the invoked session with the specified nice level" -xa "(seq -20 19)"
|
||||
complete -c run0 -s D -l chdir -d "Set working directory" -xa "(__fish_complete_directories)"
|
||||
complete -c run0 -l setenv -d "Runs the invoked session with the specified environment variable set" -x
|
||||
complete -c run0 -l background -d "Change the terminal background color to the specified ANSI color" -x
|
||||
complete -c run0 -l pty -d "Request allocation of a pseudo TTY for stdio"
|
||||
complete -c run0 -l pipe -d "Request redirect pipe for stdio"
|
||||
complete -c run0 -l shell-prompt-prefix -d "Set a shell prompt prefix string" -x
|
||||
|
Loading…
x
Reference in New Issue
Block a user