mirror of
https://github.com/danbee/dotfiles-local
synced 2025-03-04 08:49:07 +00:00
Compare commits
No commits in common. "1b839939797ff50eabac870cf680436d151dee15" and "97d7204014d8e31b26a8b187898394c6e126e46b" have entirely different histories.
1b83993979
...
97d7204014
@ -1,15 +1,13 @@
|
||||
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"
|
||||
"crystal" => "iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAAGFBMVEVHcEzZ2dnY2NjZ2dnd3d3a2trZ2dnY2NhQY3HBAAAAB3RSTlMAZ92PHDu1Fk86EAAAAI5JREFUeNrNjzsOgDAMQ3F+vf+NEQN2IxEmBt7U9rmKc3xKIN69rWWOePEXVygnLwo5eBGDJzl4nrx51XMmm9eCphKbL24fi4CBfRoUKD4aFHAFbHuEwk+LgvNUoZfQBbS9BBO1dnoztAq9RN4js3k/yF0Kj16jUYPXz+5FDl7U4EWk2+BFoIx+IlH0v+EEankKFECZCMwAAAAASUVORK5CYII=",
|
||||
"elixir" => "iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAAGFBMVEVHcEx/Z916Ytl6Ydl6Ytp8ZNp7Ytp6Ytmj2hGuAAAAB3RSTlMAGeHBoT54bVkLIwAAAH1JREFUeNrNk0sOAzEMQuMv979x5V0njFGXfVsscIxybiqPwhKh9HJAOSSgBiwwxKo7MLjUh1L6vsTkK4vGF24cgAdhfIAnXtJgiNo24BxO4F0dr7QYuI6Ohd8dAq+EeuaQ66G4tNYGvAV3asG6LjSN/0RcXTLW4YBn2/kvPr/BC1y3ed4EAAAAAElFTkSuQmCC",
|
||||
"nodejs" => "iVBORw0KGgoAAAANSUhEUgAAACAAAAAgAgMAAAAOFJJnAAAADFBMVEVHcExvuztvuDlvuTijLMEbAAAAA3RSTlMAQMCRa0lrAAAANklEQVR4AWMgErBNgDLyf0IF/v+HCOX///8TKgAUgghAhP6DAR0YcEvhzoA7DOFUhOMR3iEMAH4wa5VMF4BbAAAAAElFTkSuQmCC",
|
||||
"python" => "iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAAMFBMVEVHcEyQo5pGjM5GispFisxEisxEiszWpirWpirYpyvWpirbqSzOpTNmkavXqCvYqitbyuh6AAAAEHRSTlMACEXg//f84f9c9B7Aw1Mxvf5QxwAAAIZJREFUeNq909EKhDAMRNG2aZvYrfr/f7srioNhloKg59ULGUTDy+IhcEnyQRINJJ8KDWoGeqXcDLCfncB+R81MJ78fqtpPi9jvqW0+mOfUUSCNB3VXpBsCbJi1GZCgG9BA/wd5FAgP8KKSbNt90JZwpQYr+/DUXX8g6G6/F1c9n0+jH+ddX6eCCwZdgedvAAAAAElFTkSuQmCC",
|
||||
"ruby" => "iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAAGFBMVEVHcEy/Qzm8QDW+Qje8QDW9QTa9QDa8QTZmAPnqAAAAB3RSTlMAJvFL33C/T+QPRAAAAF1JREFUeNrN0DkKwDAQBEHd/v+PDcIwhgLFmrQ62S03rbbnt1bPblFHzGI7GxWnwC10i7hru1hCtvgAt1LgKfRevvUU+KGIp9BTHJwCp8Apppoi7iZOgVPgFPgFewH6bQsqZElHlwAAAABJRU5ErkJggg==",
|
||||
}.freeze
|
||||
|
||||
def tool_icon(tool)
|
||||
" #{TOOL_ICONS[tool]}\e[0m "
|
||||
"\e]1337;File=inline=1;height=1:#{TOOL_ICONS[tool]}\a"
|
||||
end
|
||||
end
|
||||
|
||||
@ -13,13 +13,15 @@ class Tools
|
||||
def list_tools
|
||||
tools.sort.each do |tool, version|
|
||||
if available_tools.include? tool
|
||||
puts "#{tool_icon(tool)}#{tool.ljust(max_length)} #{version}"
|
||||
puts "#{tool_icon(tool)}#{tool.ljust(max_length)} #{version}"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def max_length
|
||||
@max_length ||= installed_tools.max_by(&:length).length
|
||||
@max_length ||= installed_tools.max do |a, b|
|
||||
a.length <=> b.length
|
||||
end.length
|
||||
end
|
||||
|
||||
def installed_tools
|
||||
|
||||
@ -1 +0,0 @@
|
||||
/usr/local/share/fish/vendor_completions.d/asdf.fish
|
||||
@ -1,5 +0,0 @@
|
||||
starship init fish | source
|
||||
|
||||
source /usr/local/opt/asdf/libexec/asdf.fish
|
||||
|
||||
source ~/.aliases.local
|
||||
@ -1,31 +0,0 @@
|
||||
# This file contains fish universal variable definitions.
|
||||
# VERSION: 3.0
|
||||
SETUVAR __fish_initialized:3100
|
||||
SETUVAR fish_color_autosuggestion:555\x1ebrblack
|
||||
SETUVAR fish_color_cancel:\x2dr
|
||||
SETUVAR fish_color_command:005fd7
|
||||
SETUVAR fish_color_comment:990000
|
||||
SETUVAR fish_color_cwd:green
|
||||
SETUVAR fish_color_cwd_root:red
|
||||
SETUVAR fish_color_end:009900
|
||||
SETUVAR fish_color_error:ff0000
|
||||
SETUVAR fish_color_escape:00a6b2
|
||||
SETUVAR fish_color_history_current:\x2d\x2dbold
|
||||
SETUVAR fish_color_host:normal
|
||||
SETUVAR fish_color_host_remote:yellow
|
||||
SETUVAR fish_color_normal:normal
|
||||
SETUVAR fish_color_operator:00a6b2
|
||||
SETUVAR fish_color_param:00afff
|
||||
SETUVAR fish_color_quote:999900
|
||||
SETUVAR fish_color_redirection:00afff
|
||||
SETUVAR fish_color_search_match:bryellow\x1e\x2d\x2dbackground\x3dbrblack
|
||||
SETUVAR fish_color_selection:white\x1e\x2d\x2dbold\x1e\x2d\x2dbackground\x3dbrblack
|
||||
SETUVAR fish_color_status:red
|
||||
SETUVAR fish_color_user:brgreen
|
||||
SETUVAR fish_color_valid_path:\x2d\x2dunderline
|
||||
SETUVAR fish_key_bindings:fish_default_key_bindings
|
||||
SETUVAR fish_pager_color_completion:\x1d
|
||||
SETUVAR fish_pager_color_description:B3A06D\x1eyellow
|
||||
SETUVAR fish_pager_color_prefix:normal\x1e\x2d\x2dbold\x1e\x2d\x2dunderline
|
||||
SETUVAR fish_pager_color_progress:brwhite\x1e\x2d\x2dbackground\x3dcyan
|
||||
SETUVAR fish_user_paths:/Users/daniel\x2ebarber/\x2ebin\x1e\x2egit/safe/\x2e\x2e/\x2e\x2e/bin
|
||||
@ -1,20 +0,0 @@
|
||||
format="$all$directory$character"
|
||||
|
||||
[character]
|
||||
success_symbol = "[](bold cyan)"
|
||||
error_symbol = "[](bold red)"
|
||||
|
||||
[package]
|
||||
symbol = " "
|
||||
|
||||
[ruby]
|
||||
symbol = " "
|
||||
|
||||
[aws]
|
||||
symbol = " "
|
||||
|
||||
[git_branch]
|
||||
format = "[$symbol$branch]($style) "
|
||||
|
||||
[directory]
|
||||
style = "bold green"
|
||||
@ -21,5 +21,3 @@
|
||||
status-show-untracked-files = yes
|
||||
[pull]
|
||||
rebase = false
|
||||
[rerere]
|
||||
enabled = true
|
||||
|
||||
@ -1,8 +1,7 @@
|
||||
ruby 2.7.4
|
||||
ruby 2.7.2
|
||||
nodejs 15.8.0
|
||||
python 3.9.1
|
||||
erlang 23.2.4
|
||||
elixir 1.11.3
|
||||
rust 1.56.1
|
||||
rust 1.50.0
|
||||
yarn 1.22.10
|
||||
crystal 1.2.2
|
||||
|
||||
Loading…
Reference in New Issue
Block a user