From 38bdd56637e8abb9153468b4819bf7733377c5bb Mon Sep 17 00:00:00 2001 From: Yorick Barbanneau Date: Fri, 31 May 2024 18:53:17 +0200 Subject: [PATCH 1/4] feat: add Starship to Morty --- hosts/morty/home-config.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/hosts/morty/home-config.nix b/hosts/morty/home-config.nix index 1701470..bd1d909 100644 --- a/hosts/morty/home-config.nix +++ b/hosts/morty/home-config.nix @@ -10,6 +10,7 @@ ghq.enable = true; git.enable = true; neovim.enable = true; + starship.enable = true; utils.enable = true; vifm.enable = true; zsh.enable = true; From 459a28bbead8791dd41d73a53c35cc300d81f2f3 Mon Sep 17 00:00:00 2001 From: Yorick Barbanneau Date: Sun, 2 Jun 2024 18:04:27 +0200 Subject: [PATCH 2/4] feat: add Starship to mrMeeseeks --- hosts/mrmeeseeks/home-config.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/hosts/mrmeeseeks/home-config.nix b/hosts/mrmeeseeks/home-config.nix index c253bdb..a507446 100644 --- a/hosts/mrmeeseeks/home-config.nix +++ b/hosts/mrmeeseeks/home-config.nix @@ -10,6 +10,7 @@ ghq.enable = true; git.enable = true; neovim.enable = true; + starship.enable = true; utils.enable = true; vifm.enable = true; zsh.enable = true; From ee37f907bd1653e9e020a17d7a68055ea1e71b7a Mon Sep 17 00:00:00 2001 From: Yorick Barbanneau Date: Sun, 2 Jun 2024 18:37:19 +0200 Subject: [PATCH 3/4] chore: update Starship configuration --- modules/home-manager/cli/starship/default.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/home-manager/cli/starship/default.nix b/modules/home-manager/cli/starship/default.nix index afb8298..f88d8fd 100644 --- a/modules/home-manager/cli/starship/default.nix +++ b/modules/home-manager/cli/starship/default.nix @@ -12,10 +12,14 @@ in enable = true; enableZshIntegration = true; settings = { - format = "$username$hostname$directory$git_branch$git_state$git_status$cmd_duration$line_break $python$nix_shell$character"; + format = "$username$hostname$directory$git_branch$git_state$git_status$cmd_duration$line_break$python$nix_shell$character"; directory = { style = "blue"; truncate_to_repo = false; + truncation_length = 6; + truncation_symbol = "…/"; + read_only = "󰌾"; + format = "[$read_only]($read_only_style)[$path]($style) "; }; character = { success_symbol = "[󰅂](purple)"; @@ -27,7 +31,7 @@ in style = "bright-black"; }; git_status = { - format = "[[( *$conflicted$untracked$modified$staged$renamed$deleted)](218) ($ahead_behind$stashed)]($style) "; + format = "[[(*$conflicted$untracked$modified$staged$renamed$deleted)](218) ($ahead_behind$stashed)]($style) "; style = "cyan"; conflicted = "​"; untracked = "​"; From 98c60059a38229ef522ec562f227ad9a3d1a23e9 Mon Sep 17 00:00:00 2001 From: Yorick Barbanneau Date: Thu, 6 Jun 2024 22:43:11 +0200 Subject: [PATCH 4/4] fix: add space after read only icon --- modules/home-manager/cli/starship/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/home-manager/cli/starship/default.nix b/modules/home-manager/cli/starship/default.nix index f88d8fd..2ae30bc 100644 --- a/modules/home-manager/cli/starship/default.nix +++ b/modules/home-manager/cli/starship/default.nix @@ -18,7 +18,7 @@ in truncate_to_repo = false; truncation_length = 6; truncation_symbol = "…/"; - read_only = "󰌾"; + read_only = "󰌾 "; format = "[$read_only]($read_only_style)[$path]($style) "; }; character = {