From cdb461a4c378c75cc0a2bc8f762e20ec849a7b90 Mon Sep 17 00:00:00 2001 From: Daniel Lundin Date: Wed, 21 Aug 2024 10:12:03 +0200 Subject: [PATCH] fish: a bit of color using grc --- home/common/fish.nix | 19 ++++++++++++------- home/common/utils.nix | 1 + 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/home/common/fish.nix b/home/common/fish.nix index 84c8418..c6f0571 100644 --- a/home/common/fish.nix +++ b/home/common/fish.nix @@ -6,17 +6,22 @@ plugins = [ { - name = "transient-fish"; - src = pkgs.fetchFromGitHub { - owner = "zzhaolei"; - repo = "transient.fish"; - rev = "deb35c4d07ea6acc56b073d7ba84f8ed76356abd"; - sha256 = "sha256-BQvuqY7D+9fTDeLb7Fz9Ll/7uIlqrmRmn0S+G9v+2Uc="; - }; + name = "grc"; + src = pkgs.fishPlugins.grc.src; + } + { + name = "transient"; + src = pkgs.fishPlugins.transient-fish.src; } ]; functions = { + kubectl = { + description = "Wraps kubectl in grc"; + wraps = "kubectl"; + body = "grc.wrap kubectl $argv"; + }; + edit = { description = "Open a file in already running nvim and switch tab"; argumentNames = [ "file" ]; diff --git a/home/common/utils.nix b/home/common/utils.nix index ef5f380..165b7b3 100644 --- a/home/common/utils.nix +++ b/home/common/utils.nix @@ -1,6 +1,7 @@ { pkgs, ... }: { home.packages = with pkgs; [ + grc dust jless procs