diff options
| author | ache <ache@ache.one> | 2025-07-17 04:01:49 +0200 |
|---|---|---|
| committer | ache <ache@ache.one> | 2025-07-17 04:01:49 +0200 |
| commit | 4c65aea069bb39c86ef953c74166ab082e60f104 (patch) | |
| tree | 99fbe5624ea4659b781d5fecfd287c907fc06ab7 | |
| parent | Fix bat not installed (diff) | |
Fix bat not installed x2
| -rw-r--r-- | functions/cat.fish | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/functions/cat.fish b/functions/cat.fish index 5536e8a..a5c3ba8 100644 --- a/functions/cat.fish +++ b/functions/cat.fish @@ -1,10 +1,8 @@ function cat -d "Print a file nicely" - if type -q bat - if isatty stdout - bat $argv - else - set -l catBin $(type --no-functions --path cat) - $catBin $argv - end + if type -q bat; and isatty stdout + bat $argv + else + set -l catBin $(type --no-functions --path cat) + $catBin $argv end end |