updated starship.toml

This commit is contained in:
Nicole Dresselhaus 2023-08-28 13:08:45 +02:00
parent 1bf0d1248a
commit 3fe988e1eb
3 changed files with 71 additions and 36 deletions

20
.bashrc.append Normal file
View File

@ -0,0 +1,20 @@
# direnv
_direnv_hook() {
local previous_exit_status=$?;
trap -- '' SIGINT;
eval "$("/usr/bin/direnv" export bash)";
trap - SIGINT;
return $previous_exit_status;
};
if ! [[ "${PROMPT_COMMAND:-}" =~ _direnv_hook ]]; then
PROMPT_COMMAND="_direnv_hook${PROMPT_COMMAND:+;$PROMPT_COMMAND}"
fi
# starship
function set_win_title(){
echo -ne "\033]0; $(basename "$PWD") \007"
}
starship_precmd_user_func="set_win_title"
eval "$(starship init bash)"

View File

@ -1,22 +1,21 @@
format = """
[](#cb4b16)\
[](#661e00)\
$os\
$sudo\
$username\
[](bg:#dc322f fg:#cb4b16)\
[](bg:#660200 fg:#661e00)\
$hostname\
$kubernetes\
$helm\
[](bg:#d33682 fg:#dc322f)\
$directory\
[](fg:#d33682 bg:#6c71c4)\
[](bg:#800861 fg:#660200)\
[](fg:#800861 bg:#25347e)\
$git_branch\
$git_commit\
$git_state\
$git_metrics\
$git_status\
$docker_context\
[](fg:#6c71c4 bg:#268bd2)\
[](fg:#25347e bg:#175480)\
$c\
$elixir\
$elm\
@ -32,10 +31,11 @@ $scala\
$python\
$devenv\
$nix_shell\
[](fg:#268bd2 bg:#2aa198)\
[](fg:#175480 bg:#218078)\
$fill\
$time\
[](fg:#2aa198)
[](fg:#218078)
[](fg:#6d3e80)$directory[](fg:#6d3e80)$character
"""
add_newline = true
@ -44,26 +44,30 @@ add_newline = true
# and use the os module below
[username]
show_always = true
style_user = "fg:#073642 bg:#cb4b16"
style_root = "fg:#073642 bg:#cb4b16"
style_user = "fg:#ccc78e bg:#661e00"
style_root = "fg:#ccc78e bg:#661e00"
format = '[$user ]($style)'
disabled = false
# An alternative to the username module which displays a symbol that
# represents the current operating system
[os]
style = "fg:#073642 bg:#cb4b16"
style = "fg:#ccc78e bg:#661e00"
disabled = true # Disabled by default
[hostname]
ssh_only = false
style = "fg:#073642 bg:#dc322f"
style = "fg:#ccc78e bg:#660200"
format = "[ $hostname ]($style)"
[directory]
style = "fg:#073642 bg:#d33682"
format = "[ $path ]($style)"
truncation_length = 3
style = "fg:#ccc78e bg:#6d3e80"
read_only_style = "fg:#red bg:#6d3e80"
repo_root_style = "fg:#7386e6 bg:#6d3e80"
format = "[ $path$read_only ]($style)"
repo_root_format = "[$before_root_path]($before_repo_root_style)[$repo_root]($repo_root_style)[$path]($style)[$read_only]($read_only_style)"
truncate_to_repo = false
truncation_length = 5
truncation_symbol = "…/"
# Here is how you can shorten some long paths by text replacement
@ -81,91 +85,102 @@ truncation_symbol = "…/"
[c]
symbol = " "
style = "fg:#073642 bg:#268bd2"
style = "fg:#ccc78e bg:#175480"
format = '[ $symbol ($version) ]($style)'
[elixir]
symbol = " "
style = "fg:#073642 bg:#268bd2"
style = "fg:#ccc78e bg:#175480"
format = '[ $symbol ($version) ]($style)'
[elm]
symbol = " "
style = "fg:#073642 bg:#268bd2"
style = "fg:#ccc78e bg:#175480"
format = '[ $symbol ($version) ]($style)'
[git_branch]
symbol = ""
style = "fg:#073642 bg:#6c71c4"
style = "fg:#ccc78e bg:#25347e"
format = '[ $symbol $branch ]($style)'
[git_status]
style = "fg:#073642 bg:#6c71c4"
style = "fg:#ccc78e bg:#25347e bold"
format = '[$all_status$ahead_behind ]($style)'
[golang]
symbol = " "
style = "fg:#073642 bg:#268bd2"
style = "fg:#ccc78e bg:#175480"
format = '[ $symbol ($version) ]($style)'
[gradle]
symbol = " "
style = "fg:#073642 bg:#268bd2"
style = "fg:#ccc78e bg:#175480"
format = '[ $symbol ($version) ]($style)'
[haskell]
symbol = " "
style = "fg:#073642 bg:#268bd2"
style = "fg:#ccc78e bg:#175480"
format = '[ $symbol ($version) ]($style)'
[java]
symbol = "☕ "
style = "fg:#073642 bg:#268bd2"
style = "fg:#ccc78e bg:#175480"
format = '[ $symbol ($version) ]($style)'
[julia]
symbol = " "
style = "fg:#073642 bg:#268bd2"
style = "fg:#ccc78e bg:#175480"
format = '[ $symbol ($version) ]($style)'
[nodejs]
symbol = ""
style = "fg:#073642 bg:#268bd2"
style = "fg:#ccc78e bg:#175480"
format = '[ $symbol ($version) ]($style)'
[nim]
symbol = " "
style = "fg:#073642 bg:#268bd2"
style = "fg:#ccc78e bg:#175480"
format = '[ $symbol ($version) ]($style)'
[rust]
symbol = ""
style = "fg:#073642 bg:#268bd2"
style = "fg:#ccc78e bg:#175480"
format = '[ $symbol ($version) ]($style)'
[scala]
symbol = " "
style = "fg:#073642 bg:#268bd2"
style = "fg:#ccc78e bg:#175480"
format = '[ $symbol ($version) ]($style)'
[python]
symbol = ""
style = "fg:#073642 bg:#268bd2"
style = "fg:#ccc78e bg:#175480"
format = '[ $symbol( $pyenv_prefix)( $version( \($virtualenv\))) ]($style)'
[time]
disabled = false
time_format = "%R" # Hour:Minute Format
style = "fg:#073642 bg:#2aa198"
format = '[  $time ]($style)'
time_format = "%s  %T"
style = "fg:#ccc78e bg:#218078 bold"
format = '[ $time ]($style)'
[fill]
disabled = false
style = "fg:#ccc78e bg:#218078"
symbol = ' '
[sudo]
style = "fg:#073642 bg:#cb4b16"
style = "fg:#ccc78e bg:#661e00"
format = '[$symbol]($style)'
symbol = '🧙'
disabled = false
[nix_shell]
disabled = false
style = "fg:#073642 bg:#268bd2"
style = "fg:#ccc78e bg:#175480"
format = '[ $symbol via $name ]($style)'
[character]
format = "$symbol "
success_symbol = "[≫](#ca0ca0)"
error_symbol = "[≫](red)"
vimcmd_symbol = "[≪](green)"