summary refs log tree commit diff
path: root/pkgs/shells/fish
diff options
context:
space:
mode:
authorVladimír Čunát <vcunat@gmail.com>2015-11-29 12:00:22 +0100
committerVladimír Čunát <vcunat@gmail.com>2015-11-29 12:01:17 +0100
commit10135e6f411b143dff4cf605ef382a6308a33675 (patch)
tree79f5c7a535c4e27e1278fc44044bd8d7f541bece /pkgs/shells/fish
parent75abd4f0f9401c89366405f8a90603b3fd35a9d3 (diff)
downloadnixpkgs-10135e6f411b143dff4cf605ef382a6308a33675.tar
nixpkgs-10135e6f411b143dff4cf605ef382a6308a33675.tar.gz
nixpkgs-10135e6f411b143dff4cf605ef382a6308a33675.tar.bz2
nixpkgs-10135e6f411b143dff4cf605ef382a6308a33675.tar.lz
nixpkgs-10135e6f411b143dff4cf605ef382a6308a33675.tar.xz
nixpkgs-10135e6f411b143dff4cf605ef382a6308a33675.tar.zst
nixpkgs-10135e6f411b143dff4cf605ef382a6308a33675.zip
fish: use absolute path to clear when pressing ^L
It was unable to find `clear` for me.
/cc maintainer @ocharles.
Diffstat (limited to 'pkgs/shells/fish')
-rw-r--r--pkgs/shells/fish/default.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/shells/fish/default.nix b/pkgs/shells/fish/default.nix
index 7ee4bd8707d..c4386b1a9fb 100644
--- a/pkgs/shells/fish/default.nix
+++ b/pkgs/shells/fish/default.nix
@@ -28,6 +28,8 @@ stdenv.mkDerivation rec {
     sed -e "s|gettext |${gettext}/bin/gettext |" \
         -e "s|which |${which}/bin/which |" \
         -i "$out/share/fish/functions/_.fish"
+    substituteInPlace "$out/share/fish/functions/fish_default_key_bindings.fish" \
+      --replace "clear;" "${ncurses}/bin/clear;"
   '' + stdenv.lib.optionalString (!stdenv.isDarwin) ''
     sed -i "s|Popen(\['manpath'|Popen(\['${man_db}/bin/manpath'|" "$out/share/fish/tools/create_manpage_completions.py"
   '' + ''