Skip to content

Instantly share code, notes, and snippets.

@harveyqiu
Created September 30, 2022 10:15
Show Gist options
  • Save harveyqiu/e791f18ab60213af68119369f16c6a9d to your computer and use it in GitHub Desktop.
Save harveyqiu/e791f18ab60213af68119369f16c6a9d to your computer and use it in GitHub Desktop.
fzf
fzf --preview '([[ -f {} ]] && (bat --style=numbers --color=always --theme=Nord {} || textutil -stdout -cat txt {} || cat {})) || ([[ -d {} ]] && (tree -C {} | less)) || echo {} 2> /dev/null | head -200'
@harveyqiu
Copy link
Author

use textutil to view docx file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment