From dd7128db8543069a6ef033ad82f71413a1b1993f Mon Sep 17 00:00:00 2001 From: Rudolf Tucek Date: Wed, 19 Aug 2026 11:05:36 +0200 Subject: [PATCH] fish: avoid Ctrl+d closing shell Rebind fish's default `delete-or-exit` to `delete-char`. This still allows for sending EOF while using `cat` and alike. --- home/shell/fish.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/home/shell/fish.nix b/home/shell/fish.nix index ff2b4f1..0f4bb2e 100644 --- a/home/shell/fish.nix +++ b/home/shell/fish.nix @@ -16,7 +16,11 @@ in enable = true; interactiveShellInit = '' - set fish_greeting # Disable greeting + # Disable greeting + set fish_greeting + + # Avoid having Ctrl + d closing the shell + bind \cd delete-char ${builtins.concatStringsSep "\n" btConnFuncs} '';