summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorseth <[email protected]>2022-12-02 22:53:58 +0000
committerseth <[email protected]>2022-12-02 22:53:58 +0000
commit9075aa13405b4d390bfe50cde83938c9a3af0fa8 (patch)
treed735182abc8f160483c2d78ff5b5fd3a08282aa4
parent1f3e4b6ad522a186d2b693953b4c6f5ab1e892b7 (diff)
more misc changes
-rw-r--r--users/seth/default.nix2
-rw-r--r--users/seth/programs/default.nix1
-rw-r--r--users/seth/shell/bash.nix7
-rw-r--r--users/seth/shell/default.nix4
4 files changed, 11 insertions, 3 deletions
diff --git a/users/seth/default.nix b/users/seth/default.nix
index 15ddbfa..e53b125 100644
--- a/users/seth/default.nix
+++ b/users/seth/default.nix
@@ -12,7 +12,7 @@
extraGroups = ["wheel"];
isNormalUser = true;
hashedPassword = "***REMOVED***";
- shell = pkgs.bash;
+ shell = pkgs.zsh;
};
home-manager.users.seth = {
diff --git a/users/seth/programs/default.nix b/users/seth/programs/default.nix
index d9ccaf1..6e6734e 100644
--- a/users/seth/programs/default.nix
+++ b/users/seth/programs/default.nix
@@ -14,6 +14,7 @@
bat
clang
deadnix
+ eclint
exa
fd
lld
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";