Skip to content

Commit

Permalink
Remove batcat hack
Browse files Browse the repository at this point in the history
  • Loading branch information
akinsho committed May 16, 2020
1 parent 6c55ea5 commit 77b97e0
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions shell_scripts/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,7 @@ function _t() {

# Default to using `bat` https://github.com/sharkdp/bat#installation if it has been installed
cat() {
if [[ $(uname -s) == "Linux" ]]; then
# bat has been renamed to batcat in Ubuntu 20.04
# https://github.com/sharkdp/bat/issues/905
if hash batcat 2>/dev/null; then
batcat "$@"
fi
elif hash bat 2>/dev/null; then
if hash bat 2>/dev/null; then
bat "$@"
else
cat "$@"
Expand Down

0 comments on commit 77b97e0

Please sign in to comment.