Check bat exists before overiding it

master
Jonathan Hodgson 4 years ago
parent 32dcc8c957
commit f6cbc5ddad
  1. 4
      shells/shared/functions

@ -310,6 +310,10 @@ function debugToggle(){
function cat(){
local grcConfigs="$HOME/.config/grc/"
if ! type -p bat > /dev/null; then
/usr/bin/cat "$@"
return $?
fi
if [ -f "$1" ]; then
local ext="${1##*.}"
if [ -f "${grcConfigs}conf.${ext}" ]; then

Loading…
Cancel
Save