diff options
| author | Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> | 2024-10-03 22:03:12 +0530 |
|---|---|---|
| committer | Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> | 2024-10-03 22:03:12 +0530 |
| commit | 1474caa8f624aa568ea011629d1aec4ae2aca3c1 (patch) | |
| tree | 52ba6bda3c8b2b7839543e71271931122b587900 /modules/shell/zsh/default.nix | |
| parent | 6349cff878c36336ed9027423aaebf98ac883501 (diff) | |
| download | home-manager-config-1474caa8f624aa568ea011629d1aec4ae2aca3c1.tar.gz home-manager-config-1474caa8f624aa568ea011629d1aec4ae2aca3c1.zip | |
Using fzf as the application launcher.
Diffstat (limited to 'modules/shell/zsh/default.nix')
| -rw-r--r-- | modules/shell/zsh/default.nix | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/shell/zsh/default.nix b/modules/shell/zsh/default.nix index 0c14b8c..66e9556 100644 --- a/modules/shell/zsh/default.nix +++ b/modules/shell/zsh/default.nix @@ -15,7 +15,12 @@ programs.zsh.enable = true; programs.zsh.dotDir = ".config/zsh"; programs.zsh.history.path = "${config.xdg.cacheHome}/zsh/history"; - programs.zsh.initExtra = builtins.readFile ./zshrc; programs.zsh.shellAliases = config.shell.alias; + programs.zsh.initExtra = '' +${if config.tools.fzf.enable then + "eval \"$(fzf --zsh)\"" +else ""} +${builtins.readFile ./zshrc} + ''; }; } |
