fish: a bit of color using grc

This commit is contained in:
Daniel Lundin 2024-08-21 10:12:03 +02:00
parent e774304bd2
commit cdb461a4c3
Signed by: dln
SSH key fingerprint: SHA256:dQy1Xj3UiqJYpKR5ggQ2bxgz4jCH8IF+k3AB8o0kmdI
2 changed files with 13 additions and 7 deletions

View file

@ -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" ];

View file

@ -1,6 +1,7 @@
{ pkgs, ... }:
{
home.packages = with pkgs; [
grc
dust
jless
procs