Skip to content

Instantly share code, notes, and snippets.

@linktohack
Created September 30, 2021 09:59
Show Gist options
  • Save linktohack/8647d3e28aeb8a05a73e09d80771af09 to your computer and use it in GitHub Desktop.
Save linktohack/8647d3e28aeb8a05a73e09d80771af09 to your computer and use it in GitHub Desktop.
tldr with fzf integration
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