feat: add to starship prompt
This commit is contained in:
parent
7fc635e1e7
commit
39757ccc4a
1 changed files with 7 additions and 4 deletions
|
@ -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 = "";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue