Skip to content

Commit 45d2b64

Browse files
authored
Merge pull request #763 from kevinoid/7z-hirn
feat(7z): complete h i and rn commands
2 parents 730368b + d9ca1b4 commit 45d2b64

File tree

1 file changed

+2
-2
lines changed
  • completions

1 file changed

+2
-2
lines changed

completions/7z

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ _7z()
66
_init_completion -n = || return
77

88
if ((cword == 1)); then
9-
COMPREPLY=($(compgen -W 'a b d e l t u x' -- "$cur"))
9+
COMPREPLY=($(compgen -W 'a b d e h i l rn t u x' -- "$cur"))
1010
return
1111
fi
1212

1313
local mode
14-
[[ ${words[1]} == [adu] ]] && mode=w || mode=r
14+
[[ ${words[1]} == @(a|d|rn|u) ]] && mode=w || mode=r
1515

1616
case $cur in
1717
-ao*)

0 commit comments

Comments
 (0)