diff --git a/README.md b/README.md index e9b6eb6..08c9017 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ fork自 oh my zsh,更纯净 更快速 - fzf - fd - bat (可选 更好的文本预览效果) -- exa (可选 更好的ls预览效果) +- exa (可选 更好的目录预览效果) ```plaintext 请自行安装fd diff --git a/lib/file_preview.sh b/lib/file_preview.sh index 103cb03..5cef878 100644 --- a/lib/file_preview.sh +++ b/lib/file_preview.sh @@ -2,7 +2,7 @@ mime=$(file -bL --mime-type "$1") category=${mime%%/*} if [ -d "$1" ]; then - exa -l --no-user --no-time --icons 2>/dev/null || ls --color=tty "$1" || ls -G "$1" + exa -l --no-user --no-time --icons "$1" 2>/dev/null || ls --color=tty "$1" || ls -G "$1" elif [ "$category" = text ]; then (bat -p --color=always "$1" || cat "$1") 2>/dev/null | head -100 elif [ "$category" = image ]; then