aboutsummaryrefslogtreecommitdiffstats
path: root/modules/shell
diff options
context:
space:
mode:
authorArpit Chakladar <54011232+arpitchakladar@users.noreply.github.com>2024-10-03 22:03:12 +0530
committerArpit Chakladar <54011232+arpitchakladar@users.noreply.github.com>2024-10-03 22:03:12 +0530
commit1474caa8f624aa568ea011629d1aec4ae2aca3c1 (patch)
tree52ba6bda3c8b2b7839543e71271931122b587900 /modules/shell
parent6349cff878c36336ed9027423aaebf98ac883501 (diff)
downloadhome-manager-config-1474caa8f624aa568ea011629d1aec4ae2aca3c1.tar.gz
home-manager-config-1474caa8f624aa568ea011629d1aec4ae2aca3c1.zip
Using fzf as the application launcher.
Diffstat (limited to 'modules/shell')
-rw-r--r--modules/shell/bash/default.nix5
-rw-r--r--modules/shell/zsh/default.nix7
2 files changed, 11 insertions, 1 deletions
diff --git a/modules/shell/bash/default.nix b/modules/shell/bash/default.nix
index a82f924..fb1040a 100644
--- a/modules/shell/bash/default.nix
+++ b/modules/shell/bash/default.nix
@@ -19,6 +19,11 @@
programs.bash.enable = true;
programs.bash.historyFile = "${config.xdg.cacheHome}/bash/history";
programs.bash.shellAliases = config.shell.alias;
+ programs.bash.bashrcExtra = ''
+${if config.tools.fzf.enable then
+ "eval \"$(fzf --bash)\""
+else ""}
+ '';
home.activation.createBashCacheDirectory
= lib.hm.dag.entryAfter
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}
+ '';
};
}