mirror of
https://github.com/cheat/cheat.git
synced 2024-11-19 02:10:38 +01:00
53177cb09d
Squashed commit of the following: commit8b74d50f1f
Author: Chris Lane <chris@chris-allen-lane.com> Date: Sun Feb 2 14:40:23 2020 -0500 chore: updates README Edits the `README` to provid updated information regarding the shell autocompletion scripts and `fzf` integration. commit9868ba2d68
Author: Chris Lane <chris@chris-allen-lane.com> Date: Sun Feb 2 14:39:04 2020 -0500 chore: modifies envvar check Modifies the `CHEAT_USE_FZF` envvar check within the bash autocompletion script for clarity. commitac1012f743
Author: Chris Lane <chris@chris-allen-lane.com> Date: Sun Feb 2 14:25:34 2020 -0500 chore: renames autocompletion scripts Renames autocompletion scripts to conform with the conventions established in `scop/bash-completion`. commitc8747bd91d
Author: Chris Lane <chris@chris-allen-lane.com> Date: Sun Feb 2 14:23:03 2020 -0500 feat: improved bash autocompletions - Dramatically improves quality of bash autocompletions - Provides optional integration with `fzf` commit825bd0139d
Author: Chris Lane <chris@chris-allen-lane.com> Date: Sun Feb 2 09:19:46 2020 -0500 chore: deletes `fzf.bash` Deletes `fzf.bash`, which was always intended to be a temporary placeholder anticipating future improvements.
13 lines
999 B
Fish
Executable file
13 lines
999 B
Fish
Executable file
complete -c cheat -f -a "(cheat -l | tail -n +2 | cut -d ' ' -f 1)"
|
|
complete -c cheat -l init -d "Write a default config file to stdout"
|
|
complete -c cheat -s c -l colorize -d "Colorize output"
|
|
complete -c cheat -s d -l directories -d "List cheatsheet directories"
|
|
complete -c cheat -s e -l edit -x -a "(cheat -l | tail -n +2 | cut -d ' ' -f 1)" -d "Edit cheatsheet"
|
|
complete -c cheat -s l -l list -d "List cheatsheets"
|
|
complete -c cheat -s p -l path -x -a "(cheat -d | cut -d ':' -f 1)" -d "Return only sheets found on given path"
|
|
complete -c cheat -s r -l regex -d "Treat search phrase as a regex"
|
|
complete -c cheat -s s -l search -x -d "Search cheatsheets for given phrase"
|
|
complete -c cheat -s t -l tag -x -a "(cheat -T)" -d "Return only sheets matching the given tag"
|
|
complete -c cheat -s T -l tags -d "List all tags in use"
|
|
complete -c cheat -s v -l version -d "Print the version number"
|
|
complete -c cheat -l rm -x -a "(cheat -l | tail -n +2 | cut -d ' ' -f 1)" -d "Remove (delete) cheatsheet"
|