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

Compare commits

...

7 Commits

Author SHA1 Message Date
Daniel Barber
1b83993979 Woops, shouldn't have been adding this here! 2021-12-16 16:17:32 -06:00
Daniel Barber
435fd0fe2c Add Starship config 2021-12-16 16:09:46 -06:00
Daniel Barber
17519e5582 Update fish config 2021-12-16 16:09:46 -06:00
Daniel Barber
767292e2f7 Add fish config 2021-12-16 16:09:46 -06:00
Daniel Barber
c01db23273 Enable rerere 2021-12-16 16:09:46 -06:00
Daniel Barber
60dc2ad2f0 Update default Ruby 2021-12-16 16:09:46 -06:00
83e442e7d6 Update tools 2021-12-16 16:09:07 -06:00
8 changed files with 72 additions and 12 deletions

View File

@ -1,13 +1,15 @@
module ToolIcons
TOOL_ICONS = {
"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==",
"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"
}.freeze
def tool_icon(tool)
"\e]1337;File=inline=1;height=1:#{TOOL_ICONS[tool]}\a"
" #{TOOL_ICONS[tool]}\e[0m "
end
end

View File

@ -13,15 +13,13 @@ 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 do |a, b|
a.length <=> b.length
end.length
@max_length ||= installed_tools.max_by(&:length).length
end
def installed_tools

View File

@ -0,0 +1 @@
/usr/local/share/fish/vendor_completions.d/asdf.fish

5
config/fish/config.fish Normal file
View File

@ -0,0 +1,5 @@
starship init fish | source
source /usr/local/opt/asdf/libexec/asdf.fish
source ~/.aliases.local

View File

@ -0,0 +1,31 @@
# 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

20
config/starship.toml Normal file
View File

@ -0,0 +1,20 @@
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"

View File

@ -21,3 +21,5 @@
status-show-untracked-files = yes
[pull]
rebase = false
[rerere]
enabled = true

View File

@ -1,7 +1,8 @@
ruby 2.7.2
ruby 2.7.4
nodejs 15.8.0
python 3.9.1
erlang 23.2.4
elixir 1.11.3
rust 1.50.0
rust 1.56.1
yarn 1.22.10
crystal 1.2.2