1
0
mirror of https://github.com/danbee/dotfiles-local synced 2025-03-04 08:49:07 +00:00
dotfiles-local/bin/lib/tools/icons.rb

17 lines
358 B
Ruby

module ToolIcons
TOOL_ICONS = {
"crystal" => "\e[1;37m",
"elixir" => "\e[1;35m",
"erlang" => "\e[0;31m",
"nodejs" => "\e[38;5;118m",
"python" => "\e[0;33m",
"ruby" => "\e[1;31m",
"rust" => "\e[1;37m",
"yarn" => "\e[0;34m"
}.freeze
def tool_icon(tool)
" #{TOOL_ICONS[tool]}\e[0m "
end
end