feat(fish): add cheat.sh

Amolith created

Change summary

dot_config/private_fish/config.fish.tmpl | 8 ++++++++
1 file changed, 8 insertions(+)

Detailed changes

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