From d18c3ba50c558471dc80bd57bacaf50819f3d53a Mon Sep 17 00:00:00 2001 From: panotaka Date: Sat, 25 Nov 2023 23:17:23 -0400 Subject: [PATCH] Add bat.nix and update shell aliases --- home/shell/bat.nix | 9 +++++++++ home/shell/common.nix | 1 + home/shell/default.nix | 1 + 3 files changed, 11 insertions(+) create mode 100644 home/shell/bat.nix diff --git a/home/shell/bat.nix b/home/shell/bat.nix new file mode 100644 index 0000000..9230bc1 --- /dev/null +++ b/home/shell/bat.nix @@ -0,0 +1,9 @@ +{ + programs.bat = { + enabled = true; + }; + + home.shellAliases = { + cat = bat; + }; +} diff --git a/home/shell/common.nix b/home/shell/common.nix index 00a1cc7..f4b8345 100644 --- a/home/shell/common.nix +++ b/home/shell/common.nix @@ -4,6 +4,7 @@ { home.shellAliases = { sudo = "sudo --preserve-env=PATH"; + "\\" = "command"; }; home.packages = with pkgs; [ diff --git a/home/shell/default.nix b/home/shell/default.nix index 2ed4e4f..3fa200b 100644 --- a/home/shell/default.nix +++ b/home/shell/default.nix @@ -9,6 +9,7 @@ ./eza.nix ./atuin.nix ./autojump.nix + ./bat.nix ]; }