diff --git a/users/profiles/shells/nushell.nix b/users/profiles/shells/nushell.nix index 1c4b08f..b4fa4fd 100644 --- a/users/profiles/shells/nushell.nix +++ b/users/profiles/shells/nushell.nix @@ -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"; }; }; } diff --git a/users/profiles/starship.nix b/users/profiles/starship.nix index 9c26fd2..22925bd 100644 --- a/users/profiles/starship.nix +++ b/users/profiles/starship.nix @@ -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)";