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