From 02675640712a248fb86b0d1a5b31a0f14bdf203a Mon Sep 17 00:00:00 2001 From: Amolith Date: Wed, 12 Nov 2025 12:25:10 -0700 Subject: [PATCH] feat(fish): add cheat.sh --- dot_config/private_fish/config.fish.tmpl | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/dot_config/private_fish/config.fish.tmpl b/dot_config/private_fish/config.fish.tmpl index 2cf2e8d781a3a232b1a3f07d49b18a9f2fccdef9..37bea37b5d6da80acb27cd5b43654a80ef57d9cf 100644 --- a/dot_config/private_fish/config.fish.tmpl +++ b/dot_config/private_fish/config.fish.tmpl @@ -144,6 +144,14 @@ if status is-interactive alias soft="ssh git.secluded.site" alias g="git" + # cheat.sh integration + function cht + curl cheat.sh/$argv + end + + # register completions (on-the-fly, non-cached, because the actual command won't be cached anyway + complete -c cht -xa '(curl -s cheat.sh/:list)' + starship init fish | source atuin init --disable-up-arrow fish | source enable_transience