forked from mirrors/nixpkgs
fish: pass all of argv to command-not-found
This commit is contained in:
parent
254eebd8a0
commit
efd9562df0
13
pkgs/shells/fish/command-not-found.patch
Normal file
13
pkgs/shells/fish/command-not-found.patch
Normal file
|
@ -0,0 +1,13 @@
|
|||
diff --git a/share/functions/__fish_config_interactive.fish b/share/functions/__fish_config_interactive.fish
|
||||
index c3864a8..a12ac4d 100644
|
||||
--- a/share/functions/__fish_config_interactive.fish
|
||||
+++ b/share/functions/__fish_config_interactive.fish
|
||||
@@ -230,7 +230,7 @@ function __fish_config_interactive -d "Initializations that should be performed
|
||||
# Check for NixOS handler
|
||||
else if test -f /run/current-system/sw/bin/command-not-found
|
||||
function __fish_command_not_found_handler --on-event fish_command_not_found
|
||||
- /run/current-system/sw/bin/command-not-found $argv[1]
|
||||
+ /run/current-system/sw/bin/command-not-found $argv
|
||||
end
|
||||
# Ubuntu Feisty places this command in the regular path instead
|
||||
else if type -q -p command-not-found
|
|
@ -4,6 +4,8 @@ stdenv.mkDerivation rec {
|
|||
name = "fish-${version}";
|
||||
version = "2.2.0";
|
||||
|
||||
patches = [ ./command-not-found.patch ];
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://fishshell.com/files/${version}/${name}.tar.gz";
|
||||
sha256 = "0ympqz7llmf0hafxwglykplw6j5cz82yhlrw50lw4bnf2kykjqx7";
|
||||
|
|
Loading…
Reference in a new issue