From 7fec239046f7f296c73c5df1df4d93a2a187e6b6 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Sun, 31 Mar 2024 20:06:37 +0100 Subject: [PATCH] feat(starship): configure direnv and bun modules --- config/starship.toml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/config/starship.toml b/config/starship.toml index e7975a7..630be7a 100644 --- a/config/starship.toml +++ b/config/starship.toml @@ -1,7 +1,7 @@ # ------------------------------------------------------------------------------ # jimeh's Starship Config # ------------------------------------------------------------------------------ -# Version: 0.2.7 +# Version: 0.3.0 # URL: https://github.com/jimeh/dotfiles/blob/main/config/starship.toml # ------------------------------------------------------------------------------ # This is minimalistic Starship (https://starship.rs/) prompt setup with most @@ -54,6 +54,7 @@ $gradle\ $lua\ $nim\ $nodejs\ +$bun\ $ocaml\ $opa\ $perl\ @@ -88,6 +89,7 @@ $custom\ $cmd_duration\ $status\ $line_break\ +$direnv $jobs\ $shell\ $sudo\ @@ -259,6 +261,10 @@ symbol = ' ' format = '( [$symbol($version)]($style))' disabled = false +[bun] +format = '( [$symbol$version]($style))' +disabled = false + [c] format = '( [$symbol($version(-$name))]($style))' disabled = true @@ -444,6 +450,17 @@ format = '( [$symbol$environment]($style))' format = '( [$symbol \[$name\]]($style))' disabled = false +[direnv] +symbol = ' ' +format = '( [$symbol]($style)[($loaded(/$allowed))](red))' +allowed_msg = '' +denied_msg = 'denied' +loaded_msg = '' +not_allowed_msg = 'not allowed' +unloaded_msg = 'not loaded' +disabled = false +style = 'bold green' + [docker_context] symbol = ' ' format = '( [$symbol$context]($style))'