Skip to content

Commit bea218a

Browse files
committed
feat(firefox): add -P and --recording-output arg completions
1 parent e3c9ec7 commit bea218a

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

completions/firefox

+9-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,14 @@ _firefox()
1010
case $prev in
1111
--help | --version | --display | --UILocale | -MOZ_LOG | --new-window | --new-tab | \
1212
--private-window | --window-size | --search | --start-debugger-server | \
13-
--recording | --debugger-args | -[hvPa])
13+
--recording | --debugger-args | -[hva])
14+
return
15+
;;
16+
-P)
17+
COMPREPLY=($(compgen -W "$(
18+
awk -F= '$1 == "Name" { print $2 }' \
19+
~/.mozilla/firefox/profiles.ini 2>/dev/null
20+
)" -- "$cur"))
1421
return
1522
;;
1623
--profile | --screenshot)
@@ -21,7 +28,7 @@ _firefox()
2128
_filedir log
2229
return
2330
;;
24-
--recording-file)
31+
--recording-output | --recording-file)
2532
_filedir
2633
return
2734
;;

0 commit comments

Comments
 (0)