summaryrefslogtreecommitdiff
path: root/users/seth/shell
diff options
context:
space:
mode:
Diffstat (limited to 'users/seth/shell')
-rw-r--r--users/seth/shell/bash.nix7
-rw-r--r--users/seth/shell/default.nix4
2 files changed, 9 insertions, 2 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;
diff --git a/users/seth/shell/default.nix b/users/seth/shell/default.nix
index a9e1afd..088feec 100644
--- a/users/seth/shell/default.nix
+++ b/users/seth/shell/default.nix
@@ -10,8 +10,8 @@
];
home.sessionVariables = {
- EDITOR = pkgs.neovim;
- VISUAL = pkgs.neovim;
+ EDITOR = "nvim";
+ VISUAL = "nvim";
CARGO_HOME = "${config.xdg.dataHome}/cargo";
RUSTUP_HOME = "${config.xdg.dataHome}/rustup";
LESSHISTFILE = "${config.xdg.stateHome}/less/history";