Created
September 30, 2022 10:15
-
-
Save harveyqiu/e791f18ab60213af68119369f16c6a9d to your computer and use it in GitHub Desktop.
fzf
This file contains 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
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' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
use
textutil
to view docx file