Created
September 30, 2021 09:59
-
-
Save linktohack/8647d3e28aeb8a05a73e09d80771af09 to your computer and use it in GitHub Desktop.
tldr with fzf integration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function tl() { | |
tldr --list | awk -v RS=', |\n' '/^[^\s]/ { print }' \ | |
| fzf --preview 'tldr {}' --query "$1" \ | |
| xargs -I{} tldr '{}' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment