aboutsummaryrefslogtreecommitdiffstats
path: root/modules/shell/bash
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/bash
parent6349cff878c36336ed9027423aaebf98ac883501 (diff)
downloadhome-manager-config-1474caa8f624aa568ea011629d1aec4ae2aca3c1.tar.gz
home-manager-config-1474caa8f624aa568ea011629d1aec4ae2aca3c1.zip
Using fzf as the application launcher.
Diffstat (limited to 'modules/shell/bash')
-rw-r--r--modules/shell/bash/default.nix5
1 files changed, 5 insertions, 0 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