1
0
mirror of https://github.com/aquatix/dotfiles.git synced 2025-12-06 20:35:11 +01:00

Alias bat so it works for batcat

This commit is contained in:
2020-08-20 10:46:35 +02:00
parent 88f0f0a17a
commit 3450865acb
2 changed files with 8 additions and 0 deletions

View File

@@ -98,6 +98,9 @@ function grepl
grep --color=always -ir $argv | less -R
end
# Sometimes `bat` has the binary `batcat`, like on Debian or Ubuntu
alias bat (command -v batcat || echo bat)
function rgl
rg -p $argv | less -RFX
end