summaryrefslogtreecommitdiff
path: root/users/seth/shell
diff options
context:
space:
mode:
Diffstat (limited to 'users/seth/shell')
-rw-r--r--users/seth/shell/bash.nix15
-rw-r--r--users/seth/shell/fish.nix25
2 files changed, 29 insertions, 11 deletions
diff --git a/users/seth/shell/bash.nix b/users/seth/shell/bash.nix
index bdc2fe1..b3a1257 100644
--- a/users/seth/shell/bash.nix
+++ b/users/seth/shell/bash.nix
@@ -1,9 +1,16 @@
-{config, standalone, ...}: {
+{
+ config,
+ standalone,
+ ...
+}: {
programs.bash = {
enable = true;
- bashrcExtra = if standalone then ''
- . ${config.home.homeDirectory}/.nix-profile/etc/profile.d/nix.sh
- '' else '''';
+ bashrcExtra =
+ if standalone
+ then ''
+ . ${config.home.homeDirectory}/.nix-profile/etc/profile.d/nix.sh
+ ''
+ else '''';
historyFile = "${config.xdg.stateHome}/bash/history";
historyFileSize = 1000;
historySize = 100;
diff --git a/users/seth/shell/fish.nix b/users/seth/shell/fish.nix
index 09b7b42..c138db5 100644
--- a/users/seth/shell/fish.nix
+++ b/users/seth/shell/fish.nix
@@ -1,4 +1,9 @@
-{config, pkgs, standalone, ...}: {
+{
+ config,
+ pkgs,
+ standalone,
+ ...
+}: {
xdg.configFile."fish/themes" = {
recursive = true;
source =
@@ -14,12 +19,18 @@
programs.fish = {
enable = true;
- interactiveShellInit = ''
- fish_config theme choose "Catppuccin Mocha"
- direnv hook fish | source
- '' + (if standalone then ''
- . ${config.home.homeDirectory}/.nix-profile/etc/profile.d/nix.fish
- '' else '''');
+ interactiveShellInit =
+ ''
+ fish_config theme choose "Catppuccin Mocha"
+ direnv hook fish | source
+ ''
+ + (
+ if standalone
+ then ''
+ . ${config.home.homeDirectory}/.nix-profile/etc/profile.d/nix.fish
+ ''
+ else ''''
+ );
plugins = [
{
name = "autopair-fish";