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