diff options
| author | seth <[email protected]> | 2022-12-02 22:53:58 +0000 |
|---|---|---|
| committer | seth <[email protected]> | 2022-12-02 22:53:58 +0000 |
| commit | 9075aa13405b4d390bfe50cde83938c9a3af0fa8 (patch) | |
| tree | d735182abc8f160483c2d78ff5b5fd3a08282aa4 /users/seth/shell/bash.nix | |
| parent | 1f3e4b6ad522a186d2b693953b4c6f5ab1e892b7 (diff) | |
more misc changes
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; |
