diff options
author | rusty-snake <41237666+rusty-snake@users.noreply.github.com> | 2021-03-01 18:15:26 +0100 |
---|---|---|
committer | rusty-snake <41237666+rusty-snake@users.noreply.github.com> | 2021-03-01 18:15:26 +0100 |
commit | 8219286e03758e8950991d5acc2ad3fb479ee5e3 (patch) | |
tree | a37724603d7631932834b79739a8b68d445d60e4 | |
parent | some cleanup (diff) | |
download | firejail-8219286e03758e8950991d5acc2ad3fb479ee5e3.tar.gz firejail-8219286e03758e8950991d5acc2ad3fb479ee5e3.tar.zst firejail-8219286e03758e8950991d5acc2ad3fb479ee5e3.zip |
Update shell completions
bash:
- remove --audit
zsh:
- add --mkdir + --mkfile
- remove -audit
and fix typo in 9b56dc8e
-rw-r--r-- | src/bash_completion/firejail.bash_completion.in | 4 | ||||
-rw-r--r-- | src/firejail/usage.c | 2 | ||||
-rw-r--r-- | src/zsh_completion/_firejail.in | 4 |
3 files changed, 3 insertions, 7 deletions
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() | |||
90 | _filedir | 90 | _filedir |
91 | return 0 | 91 | return 0 |
92 | ;; | 92 | ;; |
93 | --audit) | ||
94 | _filedir | ||
95 | return 0 | ||
96 | ;; | ||
97 | --net) | 93 | --net) |
98 | comps=$(__interfaces) | 94 | comps=$(__interfaces) |
99 | COMPREPLY=( $(compgen -W '$comps' -- "$cur") ) | 95 | 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 = | |||
55 | #endif | 55 | #endif |
56 | " --cpu=cpu-number,cpu-number - set cpu affinity.\n" | 56 | " --cpu=cpu-number,cpu-number - set cpu affinity.\n" |
57 | " --cpu.print=name|pid - print the cpus in use.\n" | 57 | " --cpu.print=name|pid - print the cpus in use.\n" |
58 | #ifdef HAVE_DBUSPROXy | 58 | #ifdef HAVE_DBUSPROXY |
59 | " --dbus-log=file - set DBus log file location.\n" | 59 | " --dbus-log=file - set DBus log file location.\n" |
60 | " --dbus-system=filter|none - set system DBus access policy.\n" | 60 | " --dbus-system=filter|none - set system DBus access policy.\n" |
61 | " --dbus-system.broadcast=rule - allow signals on the system DBus according to rule.\n" | 61 | " --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=( | |||
76 | '(--cpu.print)'{--cpu.print=,--cpu.print=}'[print the cpus in use name|pid]: : _all_firejails' | 76 | '(--cpu.print)'{--cpu.print=,--cpu.print=}'[print the cpus in use name|pid]: : _all_firejails' |
77 | '--list[list all sandboxes]' | 77 | '--list[list all sandboxes]' |
78 | '(--dns)'{--dns=,--dns=}'[set DNS server]: :' | 78 | '(--dns)'{--dns=,--dns=}'[set DNS server]: :' |
79 | '*--mkdir=-[create a directory]:' | ||
80 | '*--mkfile=-[create a file]:' | ||
79 | '(--protocol)'{--protocol=,--protocol=}'[enable protocol filter]: :' | 81 | '(--protocol)'{--protocol=,--protocol=}'[enable protocol filter]: :' |
80 | '(--join-or-start)'{--join-or-start=,--join-or-start=}'[join the sandbox or start a new one name|pid]: : _all_firejails' | 82 | '(--join-or-start)'{--join-or-start=,--join-or-start=}'[join the sandbox or start a new one name|pid]: : _all_firejails' |
81 | '(--hosts-file)'{--hosts-file=,--hosts-file=}'[use file as /etc/hosts]: : _files' | 83 | '(--hosts-file)'{--hosts-file=,--hosts-file=}'[use file as /etc/hosts]: : _files' |
@@ -112,8 +114,6 @@ _firejail_args=( | |||
112 | '(--nice)'{--nice=,--nice=}'[set nice value]: :(1 10 15 20)' | 114 | '(--nice)'{--nice=,--nice=}'[set nice value]: :(1 10 15 20)' |
113 | # Should be _files, a comma and files or files -/ | 115 | # Should be _files, a comma and files or files -/ |
114 | '*'{--bind=,--bind=}'[mount-bind dirname1/filename1 on top of dirname2/filename2]: :(file1,file2 dir1,dir2)' | 116 | '*'{--bind=,--bind=}'[mount-bind dirname1/filename1 on top of dirname2/filename2]: :(file1,file2 dir1,dir2)' |
115 | '--audit[audit the sandbox]' | ||
116 | '(--audit)'{--audit=,--audit=}'[audit the sandbox with a test-program]: :' | ||
117 | '(--cgroup)'{--cgroup=,--cgroup=}'[place the sandbox in the specified control group]: :' | 117 | '(--cgroup)'{--cgroup=,--cgroup=}'[place the sandbox in the specified control group]: :' |
118 | '*'{--env=,--env=}'[set environment variable]: :' | 118 | '*'{--env=,--env=}'[set environment variable]: :' |
119 | '(--hostname)'{--hostname=,--hostname=}'[set sandbox hostname]: :' | 119 | '(--hostname)'{--hostname=,--hostname=}'[set sandbox hostname]: :' |