fish: fix cat function
This commit is contained in:
parent
4d056e0f52
commit
8606d515cf
1 changed files with 2 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
function cat --wraps=bat --description 'alias cat=bat'
|
function cat --wraps=bat --description 'alias cat=bat'
|
||||||
if type -f bat &>/dev/null
|
if type -f bat &>/dev/null; and [ -t 1 ]
|
||||||
bat $argv
|
bat $argv
|
||||||
else
|
else
|
||||||
cat $argv
|
command cat $argv
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue