dotfiles/scripts/template_preview

9 lines
117 B
Bash
Executable File

#!/usr/bin/env bash
file="$TEMPLATE_DIR/$1"
if [ -d "$file" ]; then
tree -C "$file"
else
bat -pf "$file"
fi