diff options
| author | Arpit Chakladar <arpitchakladar@gmail.com> | 2026-09-08 19:30:45 +0530 |
|---|---|---|
| committer | Arpit Chakladar <arpitchakladar@gmail.com> | 2026-09-08 19:30:45 +0530 |
| commit | 11fbd1121cd58fd2807fb973b43c14a5aabb59ea (patch) | |
| tree | ba3054eccecb8df58533dadfc9a8326e6cad1155 /modules/terminal/fzf | |
| parent | 1f82802bf50bb5c935efea47aef0418fc602492e (diff) | |
| download | home-manager-config-11fbd1121cd58fd2807fb973b43c14a5aabb59ea.tar.gz home-manager-config-11fbd1121cd58fd2807fb973b43c14a5aabb59ea.zip | |
feat(terminal/bash): added bash module
The bash shell is purely for running shell scripts
Diffstat (limited to 'modules/terminal/fzf')
| -rw-r--r-- | modules/terminal/fzf/assertions.nix | 10 | ||||
| -rw-r--r-- | modules/terminal/fzf/default.nix | 1 |
2 files changed, 5 insertions, 6 deletions
diff --git a/modules/terminal/fzf/assertions.nix b/modules/terminal/fzf/assertions.nix index 9fb24b9..75006fe 100644 --- a/modules/terminal/fzf/assertions.nix +++ b/modules/terminal/fzf/assertions.nix @@ -1,13 +1,13 @@ -# Validates zsh or bash is enabled when fzf is enabled +# fzf shell integration is only provided for zsh. bash is scripting-only +# (not a login shell), so it does not receive fzf integration. { config, ... }: { assertions = [ { - assertion = - !config.terminal.fzf.enable || config.terminal.zsh.enable || config.terminal.bash.enable; + assertion = !config.terminal.fzf.enable || config.terminal.zsh.enable; message = '' - terminal.fzf is enabled but neither terminal.zsh.enable nor terminal.bash.enable is set. - fzf shell integration requires zsh or bash. Please enable at least one. + terminal.fzf is enabled but terminal.zsh.enable is not set. + fzf shell integration requires zsh. Please enable zsh. ''; } ]; diff --git a/modules/terminal/fzf/default.nix b/modules/terminal/fzf/default.nix index 7065d2f..613134e 100644 --- a/modules/terminal/fzf/default.nix +++ b/modules/terminal/fzf/default.nix @@ -60,6 +60,5 @@ }; programs.zsh.initContent = lib.mkIf config.terminal.zsh.enable (lib.mkAfter shellIntegration); - programs.bash.initExtra = lib.mkIf config.terminal.bash.enable (lib.mkAfter shellIntegration); }; } |
