From 9a61b72e35e72da4077d4b9153ee9c48542057b7 Mon Sep 17 00:00:00 2001 From: Jeff LANCE Date: Sat, 11 Nov 2023 16:40:45 +0100 Subject: [PATCH] add starship conf --- conf/starship.toml | 151 +++++++++++++++++++++++++++++++++++++++ meta/tasks/starship.yaml | 4 ++ 2 files changed, 155 insertions(+) create mode 100644 conf/starship.toml create mode 100644 meta/tasks/starship.yaml diff --git a/conf/starship.toml b/conf/starship.toml new file mode 100644 index 0000000..4954398 --- /dev/null +++ b/conf/starship.toml @@ -0,0 +1,151 @@ +# ~/.config/starship.toml + +format = """ +$username\ +$hostname\ +$localip\ +$shlvl\ +$singularity\ +$kubernetes\ +$directory\ +$vcsh\ +$git_branch\ +$git_commit\ +$git_state\ +$git_metrics\ +$git_status\ +$hg_branch\ +$docker_context\ +$package\ +$cmake\ +$cobol\ +$container\ +$dart\ +$deno\ +$dotnet\ +$elixir\ +$elm\ +$erlang\ +$golang\ +$helm\ +$java\ +$julia\ +$kotlin\ +$lua\ +$nim\ +$nodejs\ +$ocaml\ +$perl\ +$php\ +$pulumi\ +$purescript\ +$python\ +$rlang\ +$red\ +$ruby\ +$rust\ +$scala\ +$swift\ +$terraform\ +$vlang\ +$vagrant\ +$zig\ +$nix_shell\ +$conda\ +$memory_usage\ +$aws\ +$gcloud\ +$openstack\ +$azure\ +$env_var\ +$crystal\ +$custom\ +$sudo\ +$cmd_duration\ +$line_break\ +$jobs\ +$battery\ +$time\ +$status\ +$shell\ +$character""" + +# Inserts a blank line between shell prompts +add_newline = true + +# Timeout for commands executed by starship (in milliseconds) +command_timeout = 5000 + +# Replace the "❯" symbol in the prompt with "➜" +[character] # The name of the module we are configuring is "character" +success_symbol = "[➜](bold green)" # The "success_symbol" segment is being set to "➜" with the color "bold green" + +# Disable the package module, hiding it from the prompt completely +[package] +disabled = true + +[aws] +symbol = " " + +[conda] +symbol = " " +format = "[$symbol$environment](dimmed green) " + +[dart] +symbol = " " + +[directory] +read_only = " " +format = "in [$path]($style)[$read_only]($read_only_style) " + +[docker_context] +symbol = " " + +[elixir] +symbol = " " + +[elm] +symbol = " " + +[git_branch] +symbol = " " + +[golang] +symbol = " " + +[hg_branch] +symbol = " " + +[hostname] +ssh_only = false +format = "on [$hostname](bold red) " +disabled = false + +[java] +symbol = " " + +[julia] +symbol = " " + +[memory_usage] +symbol = " " + +[nim] +symbol = " " + +[nix_shell] +symbol = " " + +[nodejs] +symbol = " " + +#[package] +#symbol = " " + +[rust] +symbol = " " + +[username] +format = "[$user]($style) " +show_always = true + diff --git a/meta/tasks/starship.yaml b/meta/tasks/starship.yaml new file mode 100644 index 0000000..bf2bbfe --- /dev/null +++ b/meta/tasks/starship.yaml @@ -0,0 +1,4 @@ +- link: + ~/.config/starship.toml: + path: conf/starship.toml +