shells/nushell: fix starship prompt
This commit is contained in:
parent
13485b16d6
commit
58260eb272
2 changed files with 7 additions and 3 deletions
|
@ -4,7 +4,12 @@
|
|||
settings = {
|
||||
complete_from_path = true;
|
||||
ctrlc_exit = true;
|
||||
prompt = "STARSHIP_SHELL= starship prompt";
|
||||
startup = [
|
||||
"mkdir ~/.cache/starship"
|
||||
"starship init nu | save ~/.cache/starship/init.nu"
|
||||
"source ~/.cache/starship/init.nu"
|
||||
];
|
||||
prompt = "starship_prompt";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -17,8 +17,7 @@
|
|||
([╳](bold grey) $status$cmd_duration)
|
||||
[┌┨[$username@$hostname](${section.user_host})┠(┨$shell$shlvl┠)──(┨$nix_shell┠)───────────┨](${line_style})
|
||||
[┝┫$directory(┣━┫$git_branch$git_status(@$git_commit)( $git_metrics)( $git_state))┃](${line_style})
|
||||
[└┨](${line_style})$character
|
||||
'';
|
||||
[└┨](${line_style})$character'';
|
||||
|
||||
character = rec {
|
||||
success_symbol = "[❯](bold purple)";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue