From 9075aa13405b4d390bfe50cde83938c9a3af0fa8 Mon Sep 17 00:00:00 2001 From: seth Date: Fri, 2 Dec 2022 22:53:58 +0000 Subject: more misc changes --- users/seth/shell/bash.nix | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'users/seth/shell/bash.nix') diff --git a/users/seth/shell/bash.nix b/users/seth/shell/bash.nix index 18167a4..c66e6a0 100644 --- a/users/seth/shell/bash.nix +++ b/users/seth/shell/bash.nix @@ -5,6 +5,13 @@ }: { programs.bash = { enable = true; + bashrcExtra = '' + # drop into fish + if [[ $(ps --no-header --pid=$PPID --format=comm) != "fish" && -z $BASH_EXECUTION_STRING ]] + then + exec fish + fi + ''; historyFile = "${config.xdg.stateHome}/bash/history"; historyFileSize = 1000; historySize = 100; -- cgit v1.2.3