mirror of
https://github.com/cheat/cheat.git
synced 2024-11-22 05:51:35 +01:00
e5114a3e76
- Re-implemented the project in Golang, and deprecated Python entirely - Implemented several new, long-requested features - Refactored cheatsheets into a separate repository
12 lines
438 B
Bash
Executable File
12 lines
438 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# This function enables you to choose a cheatsheet to view by selecting output
|
|
# from `cheat -l`. `source` it in your shell to enable it. (Consider renaming
|
|
# or aliasing it to something convenient.)
|
|
|
|
# Arguments passed to this function (like --color) will be passed to the second
|
|
# invokation of `cheat`.
|
|
function cheat-fzf {
|
|
eval `cheat -l | tail -n +2 | fzf | awk -v vars="$*" '{ print "cheat " $1 " -t " $3, vars }'`
|
|
}
|