Skip to content

Commit 23d4a36

Browse files
authored
Merge pull request #20741 from gromgit/fix-cnf-init
command-not-found-init: match fish init behavior to *sh
2 parents 98dfd75 + 4fa8001 commit 23d4a36

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Library/Homebrew/cmd/command-not-found-init.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def init
4141
when :bash, :zsh
4242
puts File.read(File.expand_path("#{File.dirname(__FILE__)}/../command-not-found/handler.sh"))
4343
when :fish
44-
puts File.expand_path("#{File.dirname(__FILE__)}/../command-not-found/handler.fish")
44+
puts File.read(File.expand_path("#{File.dirname(__FILE__)}/../command-not-found/handler.fish"))
4545
else
4646
raise "Unsupported shell type #{shell}"
4747
end

Library/Homebrew/command-not-found/handler.fish

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# See https://docs.brew.sh/Command-Not-Found for current setup instructions
12
# License: MIT
23
# The license text can be found in Library/Homebrew/command-not-found/LICENSE
34

0 commit comments

Comments
 (0)