From eee07c6580ad8776b9bf9f41814738d9bbba3e77 Mon Sep 17 00:00:00 2001 From: Abhinav Sarkar Date: Mon, 26 Sep 2022 10:26:44 +0530 Subject: [PATCH] Adds bat and fzf --- home.nix | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/home.nix b/home.nix index 320c203..76901a7 100644 --- a/home.nix +++ b/home.nix @@ -57,6 +57,7 @@ shellAliases = { j = "just"; g = "git"; + l = "bat"; }; plugins = [ @@ -94,10 +95,23 @@ fenv source $HOME/.nix-profile/etc/profile.d/hm-session-vars.sh end ''; + }; - loginShellInit = '' - fish_add_path --move --prepend --path $HOME/.nix-profile/bin /run/wrappers/bin /etc/profiles/per-user/$USER/bin /run/current-system/sw/bin /nix/var/nix/profiles/default/bin # https://github.com/LnL7/nix-darwin/issues/122 - ''; + programs.bat = { + enable = true; + config = { + italic-text = "always"; + paging = "always"; + tabs = "2"; + theme = "DarkNeon"; + }; + }; + + programs.fzf = { + enable = true; + enableFishIntegration = true; + fileWidgetCommand = "fd --type f --no-ignore"; + historyWidgetOptions = [ "--reverse" "--sort" "--exact" ]; }; programs.micro = { @@ -112,6 +126,7 @@ hlsearch = true; mkparents = true; savecursor = true; + softwrap = true; manipulator = true; }; };