mirror of
https://github.com/jbowdre/dotfiles.git
synced 2024-11-12 21:52:18 +00:00
add cht-sh
This commit is contained in:
parent
bdbd13be40
commit
e1a8a05514
1 changed files with 6 additions and 0 deletions
|
@ -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)'
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue