From e1a8a05514cca14de227e1d00447a17f5e1503cb Mon Sep 17 00:00:00 2001 From: John Bowdre Date: Fri, 22 Mar 2024 09:50:39 -0500 Subject: [PATCH] add cht-sh --- home/features/cli/fish.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/home/features/cli/fish.nix b/home/features/cli/fish.nix index 48b689d..0466469 100644 --- a/home/features/cli/fish.nix +++ b/home/features/cli/fish.nix @@ -25,6 +25,8 @@ }; functions = { + # cht.sh integration + cht = "curl cheat.sh/$argv"; # Disable greeting fish_greeting = ""; fish_prompt = '' @@ -124,6 +126,10 @@ set -U fish_pager_color_description yellow set -U fish_pager_color_prefix 'white' '--bold' '--underline' set -U fish_pager_color_progress 'brwhite' '--background=cyan' + '' + + # load cht.sh completions + '' + complete -c cht -xa '(curl -s cheat.sh/:list)' ''; }; }