From: Andre Ramnitz Date: Sun, 24 Nov 2024 22:13:44 +0000 (+0100) Subject: starship: tweak colors; add a seperate config for remote machines X-Git-Url: https://git.ramnitz.eu/?a=commitdiff_plain;h=434cdf257a739526f583cdde62d40ac5faaee6ee;p=dotfiles.git starship: tweak colors; add a seperate config for remote machines --- diff --git a/dot-config/starship-remote.toml b/dot-config/starship-remote.toml new file mode 100644 index 00000000..b6a44857 --- /dev/null +++ b/dot-config/starship-remote.toml @@ -0,0 +1,112 @@ +"$schema" = 'https://starship.rs/config-schema.json' + +command_timeout = 750 + +format = """ +[░▒▓](fg:bright-black)\ +[  ](bg:bright-black fg:#DDDAEC)\ +[](bg:yellow fg:bright-black)\ +$directory\ +[](fg:yellow bg:19)\ +${git_branch}\ +${git_commit}\ +${git_state}\ +${git_status}\ +[](fg:19 bg:red)\ +$time\ +[ ](fg:red bg:default)\ +\n$character""" + +[character] +success_symbol = '[❯](bold yellow) ' +error_symbol = '[❯](bold red) ' + +[directory] +style = 'fg:black bg:yellow' +format = "[ $path ]($style)" +truncation_length = 3 +truncation_symbol = "…/" + +[directory.substitutions] +"Documents" = "󰈙 " +"Downloads" = " " +"Music" = " " +"Pictures" = " " + +[git_branch] +symbol = "" +style = "fg:cyan bg:19 " +format = '[ $symbol $branch ]($style)' + +[git_commit] +format = '[\($hash$tag\)]($style)' +style = 'bg:19 fg:cyan dimmed' +commit_hash_length = 6 +only_detached = false +tag_symbol = ' 笠' +tag_disabled = false +disabled = false + +[git_state] +format = '\( [$state($progress_current/$progress_total)]($style)\)' +style = "bg:19 fg:white dimmed" +rebase = 'REBASING' +merge = 'MERGING' +revert = 'REVERTING' +cherry_pick = 'CHERRY-PICKING' +bisect = 'BISECTING' +am = 'AM' +am_or_rebase = 'AM/REBASE' +disabled = false + +[git_status] +format = '[ \[$all_status$ahead_behind\]]($style)[ ]($style)' +style = 'bg:19 fg:bright-green bold' +stashed = '\$' +ahead = '⇡${count}' +behind = '⇣${count}' +diverged = '⇕⇡${ahead_count}⇣${behind_count}' +conflicted = '=' +deleted = '✘' +renamed = '»' +modified = '!' +staged = '+' +untracked = '?' +disabled = false + + +[c] +symbol = "󰙱" +style = 'bg:bright-black' +format = '[[ $symbol ($version) ](fg:green bg:bright-black)]($style)' + +[nodejs] +symbol = "󰎙" +style = 'bg:bright-black' +format = '[[ $symbol ($version) ](fg:green bg:bright-black)]($style)' + +[python] +symbol = "󰌠" +style = 'bg:bright-black' +format = '[[ $symbol ($version) ](fg:green bg:bright-black)]($style)' + +[rust] +symbol = "󱘗" +style = 'bg:bright-black' +format = '[[ $symbol ($version) ](fg:green bg:bright-black)]($style)' + +[golang] +symbol = "󰟓" +style = 'bg:bright-black' +format = '[[ $symbol ($version) ](fg:green bg:bright-black)]($style)' + +[php] +symbol = "" +style = 'bg:bright-black' +format = '[[ $symbol ($version) ](fg:green bg:bright-black)]($style)' + +[time] +disabled = false +time_format = "%R" # Hour:Minute Format +style = 'bg:red fg:black' +format = '[  $time ]($style)' diff --git a/dot-config/starship.toml b/dot-config/starship.toml index f2b3f875..159f4955 100644 --- a/dot-config/starship.toml +++ b/dot-config/starship.toml @@ -5,9 +5,9 @@ command_timeout = 750 format = """ [░▒▓](fg:bright-black)\ [  ](bg:bright-black fg:#DDDAEC)\ -[](bg:cyan fg:bright-black)\ +[](bg:green fg:bright-black)\ $directory\ -[](fg:cyan bg:19)\ +[](fg:green bg:19)\ ${git_branch}\ ${git_commit}\ ${git_state}\ @@ -22,7 +22,7 @@ success_symbol = '[❯](bold green) ' error_symbol = '[❯](bold red) ' [directory] -style = 'fg:black bg:cyan' +style = 'fg:black bg:green' format = "[ $path ]($style)" truncation_length = 3 truncation_symbol = "…/"