mirror of
https://github.com/danbee/dotfiles-local
synced 2025-03-04 08:49:07 +00:00
Compare commits
7 Commits
97d7204014
...
1b83993979
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1b83993979 | ||
|
|
435fd0fe2c | ||
|
|
17519e5582 | ||
|
|
767292e2f7 | ||
|
|
c01db23273 | ||
|
|
60dc2ad2f0 | ||
| 83e442e7d6 |
@ -1,13 +1,15 @@
|
|||||||
module ToolIcons
|
module ToolIcons
|
||||||
TOOL_ICONS = {
|
TOOL_ICONS = {
|
||||||
"crystal" => "iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAAGFBMVEVHcEzZ2dnY2NjZ2dnd3d3a2trZ2dnY2NhQY3HBAAAAB3RSTlMAZ92PHDu1Fk86EAAAAI5JREFUeNrNjzsOgDAMQ3F+vf+NEQN2IxEmBt7U9rmKc3xKIN69rWWOePEXVygnLwo5eBGDJzl4nrx51XMmm9eCphKbL24fi4CBfRoUKD4aFHAFbHuEwk+LgvNUoZfQBbS9BBO1dnoztAq9RN4js3k/yF0Kj16jUYPXz+5FDl7U4EWk2+BFoIx+IlH0v+EEankKFECZCMwAAAAASUVORK5CYII=",
|
"crystal" => "\e[1;37m",
|
||||||
"elixir" => "iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAAGFBMVEVHcEx/Z916Ytl6Ydl6Ytp8ZNp7Ytp6Ytmj2hGuAAAAB3RSTlMAGeHBoT54bVkLIwAAAH1JREFUeNrNk0sOAzEMQuMv979x5V0njFGXfVsscIxybiqPwhKh9HJAOSSgBiwwxKo7MLjUh1L6vsTkK4vGF24cgAdhfIAnXtJgiNo24BxO4F0dr7QYuI6Ohd8dAq+EeuaQ66G4tNYGvAV3asG6LjSN/0RcXTLW4YBn2/kvPr/BC1y3ed4EAAAAAElFTkSuQmCC",
|
"elixir" => "\e[1;35m",
|
||||||
"nodejs" => "iVBORw0KGgoAAAANSUhEUgAAACAAAAAgAgMAAAAOFJJnAAAADFBMVEVHcExvuztvuDlvuTijLMEbAAAAA3RSTlMAQMCRa0lrAAAANklEQVR4AWMgErBNgDLyf0IF/v+HCOX///8TKgAUgghAhP6DAR0YcEvhzoA7DOFUhOMR3iEMAH4wa5VMF4BbAAAAAElFTkSuQmCC",
|
"erlang" => "\e[0;31m",
|
||||||
"python" => "iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAAMFBMVEVHcEyQo5pGjM5GispFisxEisxEiszWpirWpirYpyvWpirbqSzOpTNmkavXqCvYqitbyuh6AAAAEHRSTlMACEXg//f84f9c9B7Aw1Mxvf5QxwAAAIZJREFUeNq909EKhDAMRNG2aZvYrfr/f7srioNhloKg59ULGUTDy+IhcEnyQRINJJ8KDWoGeqXcDLCfncB+R81MJ78fqtpPi9jvqW0+mOfUUSCNB3VXpBsCbJi1GZCgG9BA/wd5FAgP8KKSbNt90JZwpQYr+/DUXX8g6G6/F1c9n0+jH+ddX6eCCwZdgedvAAAAAElFTkSuQmCC",
|
"nodejs" => "\e[38;5;118m",
|
||||||
"ruby" => "iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAAGFBMVEVHcEy/Qzm8QDW+Qje8QDW9QTa9QDa8QTZmAPnqAAAAB3RSTlMAJvFL33C/T+QPRAAAAF1JREFUeNrN0DkKwDAQBEHd/v+PDcIwhgLFmrQ62S03rbbnt1bPblFHzGI7GxWnwC10i7hru1hCtvgAt1LgKfRevvUU+KGIp9BTHJwCp8Apppoi7iZOgVPgFPgFewH6bQsqZElHlwAAAABJRU5ErkJggg==",
|
"python" => "\e[0;33m",
|
||||||
|
"ruby" => "\e[1;31m",
|
||||||
|
"rust" => "\e[1;37m"
|
||||||
}.freeze
|
}.freeze
|
||||||
|
|
||||||
def tool_icon(tool)
|
def tool_icon(tool)
|
||||||
"\e]1337;File=inline=1;height=1:#{TOOL_ICONS[tool]}\a"
|
" #{TOOL_ICONS[tool]}\e[0m "
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@ -13,15 +13,13 @@ class Tools
|
|||||||
def list_tools
|
def list_tools
|
||||||
tools.sort.each do |tool, version|
|
tools.sort.each do |tool, version|
|
||||||
if available_tools.include? tool
|
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
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def max_length
|
def max_length
|
||||||
@max_length ||= installed_tools.max do |a, b|
|
@max_length ||= installed_tools.max_by(&:length).length
|
||||||
a.length <=> b.length
|
|
||||||
end.length
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def installed_tools
|
def installed_tools
|
||||||
|
|||||||
1
config/fish/completions/asdf.fish
Symbolic link
1
config/fish/completions/asdf.fish
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
/usr/local/share/fish/vendor_completions.d/asdf.fish
|
||||||
5
config/fish/config.fish
Normal file
5
config/fish/config.fish
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
starship init fish | source
|
||||||
|
|
||||||
|
source /usr/local/opt/asdf/libexec/asdf.fish
|
||||||
|
|
||||||
|
source ~/.aliases.local
|
||||||
31
config/fish/fish_variables
Normal file
31
config/fish/fish_variables
Normal 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
20
config/starship.toml
Normal 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"
|
||||||
@ -21,3 +21,5 @@
|
|||||||
status-show-untracked-files = yes
|
status-show-untracked-files = yes
|
||||||
[pull]
|
[pull]
|
||||||
rebase = false
|
rebase = false
|
||||||
|
[rerere]
|
||||||
|
enabled = true
|
||||||
|
|||||||
@ -1,7 +1,8 @@
|
|||||||
ruby 2.7.2
|
ruby 2.7.4
|
||||||
nodejs 15.8.0
|
nodejs 15.8.0
|
||||||
python 3.9.1
|
python 3.9.1
|
||||||
erlang 23.2.4
|
erlang 23.2.4
|
||||||
elixir 1.11.3
|
elixir 1.11.3
|
||||||
rust 1.50.0
|
rust 1.56.1
|
||||||
yarn 1.22.10
|
yarn 1.22.10
|
||||||
|
crystal 1.2.2
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user