diff options
| author | seth <[email protected]> | 2023-02-25 09:11:50 -0500 |
|---|---|---|
| committer | seth <[email protected]> | 2023-02-25 09:11:50 -0500 |
| commit | 83effef025bca97e57e20a0453a9c5e76e38ea9b (patch) | |
| tree | feffe69be62e8938183c1a8fb0768519a16ee3d8 /users/seth/shell/fish.nix | |
| parent | 33d7a86e253d0f267e86fc48764ef4d5780b4c95 (diff) | |
support nix fmt on all platforms
Diffstat (limited to 'users/seth/shell/fish.nix')
| -rw-r--r-- | users/seth/shell/fish.nix | 25 |
1 files changed, 18 insertions, 7 deletions
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"; |
