Skip to content

Instantly share code, notes, and snippets.

@outro56
Created September 18, 2021 17:27
Show Gist options
  • Save outro56/2875b751c85028a6f347368842b7c257 to your computer and use it in GitHub Desktop.
Save outro56/2875b751c85028a6f347368842b7c257 to your computer and use it in GitHub Desktop.
Fzf: preview selection
fzf --preview '([[ -f {} ]] && (bat --style=numbers --color=always {} || cat {})) || ([[ -d {} ]] && (tree -C {} | less)) || echo {} 2> /dev/null | head -200'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment