From 1d7b04a71c7222153ffa9cd48f73b51ea72204d1 Mon Sep 17 00:00:00 2001 From: seth Date: Sat, 18 Feb 2023 05:13:27 -0500 Subject: major refactor - `mkHost` now accepts an optional `specialArgs` argument to be passed to `nixosSystem()` - the `modules` argument for `mkHMUser` is now optional --- users/seth/shell/bash.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'users/seth/shell/bash.nix') diff --git a/users/seth/shell/bash.nix b/users/seth/shell/bash.nix index 32f4f31..0dfb717 100644 --- a/users/seth/shell/bash.nix +++ b/users/seth/shell/bash.nix @@ -1,6 +1,12 @@ {config, ...}: { programs.bash = { - enable = !config.seth.standalone; + enable = true; + bashrcExtra = '' + 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