diff --git a/setup.sh b/setup.sh index f3f1567..9f9263b 100755 --- a/setup.sh +++ b/setup.sh @@ -38,6 +38,12 @@ if [[ ! -d "$HOME/.config/k9s" ]]; then ln -sfv "$SCRIPTPATH/k9s" "$HOME/.config/k9s" fi +# Link starship config. +if [[ ! -a "$HOME/.config/starship/starship.toml" ]]; then + mkdir -p "$HOME/.config/starship" + ln -sfv "$SCRIPTPATH/starship.toml" "$HOME/.config/starship/starship.toml" +fi + # Link dotfiles. declare -a dotfiles=("gemrc" "gitconfig" "gitignore.global") for file in "${dotfiles[@]}" diff --git a/starship.toml b/starship.toml new file mode 100644 index 0000000..2d58511 --- /dev/null +++ b/starship.toml @@ -0,0 +1,93 @@ +"$schema" = 'https://starship.rs/config-schema.json' + +# +# Settings +# + +palette = "catppuccin_mocha" +format = """ +$username$hostname +$directory$character +""" +right_format = """$git_branch""" + +[character] +format = "$symbol" +success_symbol = "[\\$](bold green)" +error_symbol = "[✗](bold red)" + +[directory] +style = "sky" + +[git_branch] +format = "[$symbol$branch(:$remote_branch)]($style)" + +[hostname] +ssh_only = false +style = "dimmed green" +format = "[$hostname]($style) " + +[username] +show_always = true +style_user = "green" +format = "[$user]($style)@" + +# +# Palettes +# + +[palettes.catppuccin_latte] +rosewater = "#dc8a78" +flamingo = "#dd7878" +pink = "#ea76cb" +mauve = "#8839ef" +red = "#d20f39" +maroon = "#e64553" +peach = "#fe640b" +yellow = "#df8e1d" +green = "#40a02b" +teal = "#179299" +sky = "#04a5e5" +sapphire = "#209fb5" +blue = "#1e66f5" +lavender = "#7287fd" +text = "#4c4f69" +subtext1 = "#5c5f77" +subtext0 = "#6c6f85" +overlay2 = "#7c7f93" +overlay1 = "#8c8fa1" +overlay0 = "#9ca0b0" +surface2 = "#acb0be" +surface1 = "#bcc0cc" +surface0 = "#ccd0da" +base = "#eff1f5" +mantle = "#e6e9ef" +crust = "#dce0e8" + +[palettes.catppuccin_mocha] +rosewater = "#f5e0dc" +flamingo = "#f2cdcd" +pink = "#f5c2e7" +mauve = "#cba6f7" +red = "#f38ba8" +maroon = "#eba0ac" +peach = "#fab387" +yellow = "#f9e2af" +green = "#a6e3a1" +teal = "#94e2d5" +sky = "#89dceb" +sapphire = "#74c7ec" +blue = "#89b4fa" +lavender = "#b4befe" +text = "#cdd6f4" +subtext1 = "#bac2de" +subtext0 = "#a6adc8" +overlay2 = "#9399b2" +overlay1 = "#7f849c" +overlay0 = "#6c7086" +surface2 = "#585b70" +surface1 = "#45475a" +surface0 = "#313244" +base = "#1e1e2e" +mantle = "#181825" +crust = "#11111b"