shell: nushell integration scripts (#4630)
CodeQL / Analyze (go) (push) Has been cancelled
build / build (push) Has been cancelled
Test fzf on macOS / build (push) Has been cancelled

Co-authored-by: imsys <911254+imsys@users.noreply.github.com>
Co-authored-by: Grzegorz Zalewski (Greg) <12560152+zalewskigrzegorz@users.noreply.github.com>
Co-authored-by: René Jochum <rene@jochum.dev>
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Simon Désaulniers
2026-05-23 23:13:46 +09:00
committed by GitHub
co-authored by imsys Grzegorz Zalewski René Jochum Junegunn Choi Copilot Autofix powered by AI
parent ccedd064ca
commit 290b18d9fe
13 changed files with 1040 additions and 16 deletions
+7
View File
@@ -233,6 +233,7 @@ Usage: fzf [options]
--bash Print script to set up Bash shell integration
--zsh Print script to set up Zsh shell integration
--fish Print script to set up Fish shell integration
--nushell Print script to set up Nushell integration
HELP
--version Display version information and exit
@@ -586,6 +587,7 @@ type Options struct {
Bash bool
Zsh bool
Fish bool
Nushell bool
Man bool
Fuzzy bool
FuzzyAlgo algo.Algo
@@ -733,6 +735,7 @@ func defaultOptions() *Options {
Bash: false,
Zsh: false,
Fish: false,
Nushell: false,
Man: false,
Fuzzy: true,
FuzzyAlgo: algo.FuzzyMatchV2,
@@ -2553,6 +2556,7 @@ func parseOptions(index *int, opts *Options, allArgs []string) error {
opts.Bash = false
opts.Zsh = false
opts.Fish = false
opts.Nushell = false
opts.Help = false
opts.Version = false
opts.Man = false
@@ -2665,6 +2669,9 @@ func parseOptions(index *int, opts *Options, allArgs []string) error {
case "--fish":
clearExitingOpts()
opts.Fish = true
case "--nushell":
clearExitingOpts()
opts.Nushell = true
case "-h", "--help":
clearExitingOpts()
opts.Help = true