diff --git a/shells/shared/functions b/shells/shared/functions index 1e7225c9..6749e596 100644 --- a/shells/shared/functions +++ b/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