feat: add to starship prompt

This commit is contained in:
Infinidoge 2021-09-20 07:15:04 -04:00
parent 7fc635e1e7
commit 39757ccc4a

View file

@ -6,15 +6,18 @@
settings = settings =
let let
line_style = "bold green"; line_style = "bold green";
section = {
user_host = "underline";
};
in in
{ {
add_newline = true; add_newline = true;
format = '' format = ''
([](bold grey) $status$cmd_duration) ([](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}) [$directory($git_branch$git_status(@$git_commit)( $git_metrics)( $git_state))](${line_style})
[($nix_shell)](${line_style})$character [](${line_style})$character
''; '';
# format = '' # format = ''
# (╢$status $cmd_duration\n)[┌───┨$shlvl┠──┨$shell┠────────>](bold green) $username@$hostname # (╢$status $cmd_duration\n)[┌───┨$shlvl┠──┨$shell┠────────>](bold green) $username@$hostname
@ -87,13 +90,13 @@
}; };
username = { username = {
format = "[$user]($style)"; format = "[$user]($style ${section.user_host})";
show_always = true; show_always = true;
}; };
hostname = { hostname = {
ssh_only = false; ssh_only = false;
format = "[$hostname]($style)"; format = "[$hostname]($style ${section.user_host})";
trim_at = ""; trim_at = "";
}; };