updated starship.toml
This commit is contained in:
parent
1bf0d1248a
commit
3fe988e1eb
20
.bashrc.append
Normal file
20
.bashrc.append
Normal 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)"
|
@ -1,22 +1,21 @@
|
|||||||
format = """
|
format = """
|
||||||
[](#cb4b16)\
|
[](#661e00)\
|
||||||
$os\
|
$os\
|
||||||
$sudo\
|
$sudo\
|
||||||
$username\
|
$username\
|
||||||
[](bg:#dc322f fg:#cb4b16)\
|
[](bg:#660200 fg:#661e00)\
|
||||||
$hostname\
|
$hostname\
|
||||||
$kubernetes\
|
$kubernetes\
|
||||||
$helm\
|
$helm\
|
||||||
[](bg:#d33682 fg:#dc322f)\
|
[](bg:#800861 fg:#660200)\
|
||||||
$directory\
|
[](fg:#800861 bg:#25347e)\
|
||||||
[](fg:#d33682 bg:#6c71c4)\
|
|
||||||
$git_branch\
|
$git_branch\
|
||||||
$git_commit\
|
$git_commit\
|
||||||
$git_state\
|
$git_state\
|
||||||
$git_metrics\
|
$git_metrics\
|
||||||
$git_status\
|
$git_status\
|
||||||
$docker_context\
|
$docker_context\
|
||||||
[](fg:#6c71c4 bg:#268bd2)\
|
[](fg:#25347e bg:#175480)\
|
||||||
$c\
|
$c\
|
||||||
$elixir\
|
$elixir\
|
||||||
$elm\
|
$elm\
|
||||||
@ -32,10 +31,11 @@ $scala\
|
|||||||
$python\
|
$python\
|
||||||
$devenv\
|
$devenv\
|
||||||
$nix_shell\
|
$nix_shell\
|
||||||
[](fg:#268bd2 bg:#2aa198)\
|
[](fg:#175480 bg:#218078)\
|
||||||
|
$fill\
|
||||||
$time\
|
$time\
|
||||||
[](fg:#2aa198)
|
[](fg:#218078)
|
||||||
❯
|
[](fg:#6d3e80)$directory[](fg:#6d3e80)$character
|
||||||
"""
|
"""
|
||||||
|
|
||||||
add_newline = true
|
add_newline = true
|
||||||
@ -44,26 +44,30 @@ add_newline = true
|
|||||||
# and use the os module below
|
# and use the os module below
|
||||||
[username]
|
[username]
|
||||||
show_always = true
|
show_always = true
|
||||||
style_user = "fg:#073642 bg:#cb4b16"
|
style_user = "fg:#ccc78e bg:#661e00"
|
||||||
style_root = "fg:#073642 bg:#cb4b16"
|
style_root = "fg:#ccc78e bg:#661e00"
|
||||||
format = '[$user ]($style)'
|
format = '[$user ]($style)'
|
||||||
disabled = false
|
disabled = false
|
||||||
|
|
||||||
# An alternative to the username module which displays a symbol that
|
# An alternative to the username module which displays a symbol that
|
||||||
# represents the current operating system
|
# represents the current operating system
|
||||||
[os]
|
[os]
|
||||||
style = "fg:#073642 bg:#cb4b16"
|
style = "fg:#ccc78e bg:#661e00"
|
||||||
disabled = true # Disabled by default
|
disabled = true # Disabled by default
|
||||||
|
|
||||||
[hostname]
|
[hostname]
|
||||||
ssh_only = false
|
ssh_only = false
|
||||||
style = "fg:#073642 bg:#dc322f"
|
style = "fg:#ccc78e bg:#660200"
|
||||||
format = "[ $hostname ]($style)"
|
format = "[ $hostname ]($style)"
|
||||||
|
|
||||||
[directory]
|
[directory]
|
||||||
style = "fg:#073642 bg:#d33682"
|
style = "fg:#ccc78e bg:#6d3e80"
|
||||||
format = "[ $path ]($style)"
|
read_only_style = "fg:#red bg:#6d3e80"
|
||||||
truncation_length = 3
|
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 = "…/"
|
truncation_symbol = "…/"
|
||||||
|
|
||||||
# Here is how you can shorten some long paths by text replacement
|
# Here is how you can shorten some long paths by text replacement
|
||||||
@ -81,91 +85,102 @@ truncation_symbol = "…/"
|
|||||||
|
|
||||||
[c]
|
[c]
|
||||||
symbol = " "
|
symbol = " "
|
||||||
style = "fg:#073642 bg:#268bd2"
|
style = "fg:#ccc78e bg:#175480"
|
||||||
format = '[ $symbol ($version) ]($style)'
|
format = '[ $symbol ($version) ]($style)'
|
||||||
|
|
||||||
[elixir]
|
[elixir]
|
||||||
symbol = " "
|
symbol = " "
|
||||||
style = "fg:#073642 bg:#268bd2"
|
style = "fg:#ccc78e bg:#175480"
|
||||||
format = '[ $symbol ($version) ]($style)'
|
format = '[ $symbol ($version) ]($style)'
|
||||||
|
|
||||||
[elm]
|
[elm]
|
||||||
symbol = " "
|
symbol = " "
|
||||||
style = "fg:#073642 bg:#268bd2"
|
style = "fg:#ccc78e bg:#175480"
|
||||||
format = '[ $symbol ($version) ]($style)'
|
format = '[ $symbol ($version) ]($style)'
|
||||||
|
|
||||||
[git_branch]
|
[git_branch]
|
||||||
symbol = ""
|
symbol = ""
|
||||||
style = "fg:#073642 bg:#6c71c4"
|
style = "fg:#ccc78e bg:#25347e"
|
||||||
format = '[ $symbol $branch ]($style)'
|
format = '[ $symbol $branch ]($style)'
|
||||||
|
|
||||||
[git_status]
|
[git_status]
|
||||||
style = "fg:#073642 bg:#6c71c4"
|
style = "fg:#ccc78e bg:#25347e bold"
|
||||||
format = '[$all_status$ahead_behind ]($style)'
|
format = '[$all_status$ahead_behind ]($style)'
|
||||||
|
|
||||||
[golang]
|
[golang]
|
||||||
symbol = " "
|
symbol = " "
|
||||||
style = "fg:#073642 bg:#268bd2"
|
style = "fg:#ccc78e bg:#175480"
|
||||||
format = '[ $symbol ($version) ]($style)'
|
format = '[ $symbol ($version) ]($style)'
|
||||||
|
|
||||||
[gradle]
|
[gradle]
|
||||||
symbol = " "
|
symbol = " "
|
||||||
style = "fg:#073642 bg:#268bd2"
|
style = "fg:#ccc78e bg:#175480"
|
||||||
format = '[ $symbol ($version) ]($style)'
|
format = '[ $symbol ($version) ]($style)'
|
||||||
|
|
||||||
[haskell]
|
[haskell]
|
||||||
symbol = " "
|
symbol = " "
|
||||||
style = "fg:#073642 bg:#268bd2"
|
style = "fg:#ccc78e bg:#175480"
|
||||||
format = '[ $symbol ($version) ]($style)'
|
format = '[ $symbol ($version) ]($style)'
|
||||||
|
|
||||||
[java]
|
[java]
|
||||||
symbol = "☕ "
|
symbol = "☕ "
|
||||||
style = "fg:#073642 bg:#268bd2"
|
style = "fg:#ccc78e bg:#175480"
|
||||||
format = '[ $symbol ($version) ]($style)'
|
format = '[ $symbol ($version) ]($style)'
|
||||||
|
|
||||||
[julia]
|
[julia]
|
||||||
symbol = " "
|
symbol = " "
|
||||||
style = "fg:#073642 bg:#268bd2"
|
style = "fg:#ccc78e bg:#175480"
|
||||||
format = '[ $symbol ($version) ]($style)'
|
format = '[ $symbol ($version) ]($style)'
|
||||||
|
|
||||||
[nodejs]
|
[nodejs]
|
||||||
symbol = ""
|
symbol = ""
|
||||||
style = "fg:#073642 bg:#268bd2"
|
style = "fg:#ccc78e bg:#175480"
|
||||||
format = '[ $symbol ($version) ]($style)'
|
format = '[ $symbol ($version) ]($style)'
|
||||||
|
|
||||||
[nim]
|
[nim]
|
||||||
symbol = " "
|
symbol = " "
|
||||||
style = "fg:#073642 bg:#268bd2"
|
style = "fg:#ccc78e bg:#175480"
|
||||||
format = '[ $symbol ($version) ]($style)'
|
format = '[ $symbol ($version) ]($style)'
|
||||||
|
|
||||||
[rust]
|
[rust]
|
||||||
symbol = ""
|
symbol = ""
|
||||||
style = "fg:#073642 bg:#268bd2"
|
style = "fg:#ccc78e bg:#175480"
|
||||||
format = '[ $symbol ($version) ]($style)'
|
format = '[ $symbol ($version) ]($style)'
|
||||||
|
|
||||||
[scala]
|
[scala]
|
||||||
symbol = " "
|
symbol = " "
|
||||||
style = "fg:#073642 bg:#268bd2"
|
style = "fg:#ccc78e bg:#175480"
|
||||||
format = '[ $symbol ($version) ]($style)'
|
format = '[ $symbol ($version) ]($style)'
|
||||||
|
|
||||||
[python]
|
[python]
|
||||||
symbol = ""
|
symbol = ""
|
||||||
style = "fg:#073642 bg:#268bd2"
|
style = "fg:#ccc78e bg:#175480"
|
||||||
format = '[ $symbol( $pyenv_prefix)( $version( \($virtualenv\))) ]($style)'
|
format = '[ $symbol( $pyenv_prefix)( $version( \($virtualenv\))) ]($style)'
|
||||||
|
|
||||||
[time]
|
[time]
|
||||||
disabled = false
|
disabled = false
|
||||||
time_format = "%R" # Hour:Minute Format
|
time_format = "%s %T"
|
||||||
style = "fg:#073642 bg:#2aa198"
|
style = "fg:#ccc78e bg:#218078 bold"
|
||||||
format = '[ $time ]($style)'
|
format = '[ $time ]($style)'
|
||||||
|
|
||||||
|
[fill]
|
||||||
|
disabled = false
|
||||||
|
style = "fg:#ccc78e bg:#218078"
|
||||||
|
symbol = ' '
|
||||||
|
|
||||||
[sudo]
|
[sudo]
|
||||||
style = "fg:#073642 bg:#cb4b16"
|
style = "fg:#ccc78e bg:#661e00"
|
||||||
format = '[$symbol]($style)'
|
format = '[$symbol]($style)'
|
||||||
symbol = '🧙'
|
symbol = '🧙'
|
||||||
disabled = false
|
disabled = false
|
||||||
|
|
||||||
[nix_shell]
|
[nix_shell]
|
||||||
disabled = false
|
disabled = false
|
||||||
style = "fg:#073642 bg:#268bd2"
|
style = "fg:#ccc78e bg:#175480"
|
||||||
format = '[ $symbol via $name ]($style)'
|
format = '[ $symbol via $name ]($style)'
|
||||||
|
|
||||||
|
[character]
|
||||||
|
format = "$symbol "
|
||||||
|
success_symbol = "[≫](#ca0ca0)"
|
||||||
|
error_symbol = "[≫](red)"
|
||||||
|
vimcmd_symbol = "[≪](green)"
|
||||||
|
Loading…
Reference in New Issue
Block a user