From 39757ccc4ac841c07e9c996a11a05b097b20148b Mon Sep 17 00:00:00 2001 From: Infinidoge Date: Mon, 20 Sep 2021 07:15:04 -0400 Subject: [PATCH] feat: add to starship prompt --- users/profiles/starship.nix | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/users/profiles/starship.nix b/users/profiles/starship.nix index ce5d1a0..41ddddf 100644 --- a/users/profiles/starship.nix +++ b/users/profiles/starship.nix @@ -6,15 +6,18 @@ settings = let line_style = "bold green"; + section = { + user_host = "underline"; + }; in { add_newline = true; format = '' ([╳](bold grey) $status$cmd_duration) - [┌───(┨$shlvl┠)──(┨$shell┠)────────┨$username@$hostname┃](${line_style}) + [┌┨[$username@$hostname](${section.user_host})┠(┨$shell $shlvl┠)──(┨$nix_shell┠)───────────┨](${line_style}) [┝┫$directory(┣━┫$git_branch$git_status(@$git_commit)( $git_metrics)( $git_state))┃](${line_style}) - [└─(┨$nix_shell┠)┨](${line_style})$character + [└┨](${line_style})$character ''; # format = '' # (╢$status $cmd_duration\n)[┌───┨$shlvl┠──┨$shell┠────────>](bold green) $username@$hostname @@ -87,13 +90,13 @@ }; username = { - format = "[$user]($style)"; + format = "[$user]($style ${section.user_host})"; show_always = true; }; hostname = { ssh_only = false; - format = "[$hostname]($style)"; + format = "[$hostname]($style ${section.user_host})"; trim_at = ""; };