From 8219286e03758e8950991d5acc2ad3fb479ee5e3 Mon Sep 17 00:00:00 2001 From: rusty-snake <41237666+rusty-snake@users.noreply.github.com> Date: Mon, 1 Mar 2021 18:15:26 +0100 Subject: Update shell completions bash: - remove --audit zsh: - add --mkdir + --mkfile - remove -audit and fix typo in 9b56dc8e --- src/bash_completion/firejail.bash_completion.in | 4 ---- src/firejail/usage.c | 2 +- src/zsh_completion/_firejail.in | 4 ++-- 3 files changed, 3 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/bash_completion/firejail.bash_completion.in b/src/bash_completion/firejail.bash_completion.in index 00f04c310..f68edf380 100644 --- a/src/bash_completion/firejail.bash_completion.in +++ b/src/bash_completion/firejail.bash_completion.in @@ -90,10 +90,6 @@ _firejail() _filedir return 0 ;; - --audit) - _filedir - return 0 - ;; --net) comps=$(__interfaces) COMPREPLY=( $(compgen -W '$comps' -- "$cur") ) diff --git a/src/firejail/usage.c b/src/firejail/usage.c index a9acd7692..397150158 100644 --- a/src/firejail/usage.c +++ b/src/firejail/usage.c @@ -55,7 +55,7 @@ static char *usage_str = #endif " --cpu=cpu-number,cpu-number - set cpu affinity.\n" " --cpu.print=name|pid - print the cpus in use.\n" -#ifdef HAVE_DBUSPROXy +#ifdef HAVE_DBUSPROXY " --dbus-log=file - set DBus log file location.\n" " --dbus-system=filter|none - set system DBus access policy.\n" " --dbus-system.broadcast=rule - allow signals on the system DBus according to rule.\n" diff --git a/src/zsh_completion/_firejail.in b/src/zsh_completion/_firejail.in index 7e8df138e..f58f0d4b9 100644 --- a/src/zsh_completion/_firejail.in +++ b/src/zsh_completion/_firejail.in @@ -76,6 +76,8 @@ _firejail_args=( '(--cpu.print)'{--cpu.print=,--cpu.print=}'[print the cpus in use name|pid]: : _all_firejails' '--list[list all sandboxes]' '(--dns)'{--dns=,--dns=}'[set DNS server]: :' + '*--mkdir=-[create a directory]:' + '*--mkfile=-[create a file]:' '(--protocol)'{--protocol=,--protocol=}'[enable protocol filter]: :' '(--join-or-start)'{--join-or-start=,--join-or-start=}'[join the sandbox or start a new one name|pid]: : _all_firejails' '(--hosts-file)'{--hosts-file=,--hosts-file=}'[use file as /etc/hosts]: : _files' @@ -112,8 +114,6 @@ _firejail_args=( '(--nice)'{--nice=,--nice=}'[set nice value]: :(1 10 15 20)' # Should be _files, a comma and files or files -/ '*'{--bind=,--bind=}'[mount-bind dirname1/filename1 on top of dirname2/filename2]: :(file1,file2 dir1,dir2)' - '--audit[audit the sandbox]' - '(--audit)'{--audit=,--audit=}'[audit the sandbox with a test-program]: :' '(--cgroup)'{--cgroup=,--cgroup=}'[place the sandbox in the specified control group]: :' '*'{--env=,--env=}'[set environment variable]: :' '(--hostname)'{--hostname=,--hostname=}'[set sandbox hostname]: :' -- cgit v1.2.3-70-g09d2