Skip to content

Instantly share code, notes, and snippets.

@binury
Last active March 25, 2021 17:15
Show Gist options
  • Save binury/048fdaa273273f8af9b39da2a202f0eb to your computer and use it in GitHub Desktop.
Save binury/048fdaa273273f8af9b39da2a202f0eb to your computer and use it in GitHub Desktop.
Exa colorization for web dev file types
# https://jonasjacek.github.io/colors
FC='38;5' # Full Color ANSI 256 Prefix
declare -A colors
colors=(
[ejs]=149
[js]=184
[jsx]=116
[json]=251
[ts]=32
[css]=33
[less]=25
[sass]=133
[html]=166
)
for ext clr in ${(kv)colors}; do LS_COLORS+="*.$ext=$FC;${colors[$ext]}:"; done
export LS_COLORS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment