mirror of
https://github.com/theniceboy/.config.git
synced 2026-07-16 22:01:21 +08:00
ccat fix
This commit is contained in:
parent
0e5c935855
commit
ce07f277e1
2 changed files with 4 additions and 2 deletions
|
|
@ -217,7 +217,7 @@ handle_mime() {
|
|||
case "${mimetype}" in
|
||||
# Text
|
||||
text/* | */xml)
|
||||
if command -v ccat 2>/dev/null; then
|
||||
if command -v ccat &>/dev/null; then
|
||||
ccat --color=always ${FILE_PATH}
|
||||
exit 0
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue