diff options
Diffstat (limited to 'users/seth/shell/bash.nix')
| -rw-r--r-- | users/seth/shell/bash.nix | 8 |
1 files changed, 7 insertions, 1 deletions
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; |
