Skip to content

Commit

Permalink
add cht-sh
Browse files Browse the repository at this point in the history
  • Loading branch information
jbowdre committed Mar 22, 2024
1 parent bdbd13b commit e1a8a05
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions home/features/cli/fish.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
};

functions = {
# cht.sh integration
cht = "curl cheat.sh/$argv";
# Disable greeting
fish_greeting = "";
fish_prompt = ''
Expand Down Expand Up @@ -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)'
'';
};
}

0 comments on commit e1a8a05

Please sign in to comment.