Skip to content

Commit 77b97e0

Browse files
committed
Remove batcat hack
see: sharkdp/bat#982
1 parent 6c55ea5 commit 77b97e0

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

shell_scripts/functions.sh

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,7 @@ function _t() {
1010

1111
# Default to using `bat` https://github.com/sharkdp/bat#installation if it has been installed
1212
cat() {
13-
if [[ $(uname -s) == "Linux" ]]; then
14-
# bat has been renamed to batcat in Ubuntu 20.04
15-
# https://github.com/sharkdp/bat/issues/905
16-
if hash batcat 2>/dev/null; then
17-
batcat "$@"
18-
fi
19-
elif hash bat 2>/dev/null; then
13+
if hash bat 2>/dev/null; then
2014
bat "$@"
2115
else
2216
cat "$@"

0 commit comments

Comments
 (0)