dotfiles/scripts/template_preview

9 lines
117 B
Plaintext
Raw Normal View History

2022-04-14 21:26:15 +02:00
#!/usr/bin/env bash
file="$TEMPLATE_DIR/$1"
if [ -d "$file" ]; then
tree -C "$file"
else
bat -pf "$file"
fi