nixos

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 0f85c503e73809c1aa5e6cd3a576f3d220f186aa
parent 60a410aa47a19488e619ced7052a14fdaa0aad2d
Author: Toni Brown <me@tb148.net>
Date:   Tue, 24 Mar 2026 10:38:43 +0800

remove starship

Diffstat:
Mconfig.nu | 69+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------
Mhome.nix | 1+
2 files changed, 64 insertions(+), 6 deletions(-)

diff --git a/config.nu b/config.nu @@ -1,4 +1,4 @@ -$env.config.buffer_editor = 'hx' +$env.config.buffer_editor = "hx" $env.config.show_banner = false $env.config.completions.external = { enable: true @@ -17,11 +17,68 @@ $env.config.completions.external = { } } } -$env.TRANSIENT_PROMPT_COMMAND = ^starship module character -$env.TRANSIENT_PROMPT_MULTILINE_INDICATOR = " " -$env.EDITOR = "hx"; -$env.SHELL = "nu"; -$env.UID = $'(id -u)' +let theme = { + rosewater: "#f5e0dc" + flamingo: "#f2cdcd" + pink: "#f5c2e7" + mauve: "#cba6f7" + red: "#f38ba8" + maroon: "#eba0ac" + peach: "#fab387" + yellow: "#f9e2af" + green: "#a6e3a1" + teal: "#94e2d5" + sky: "#89dceb" + sapphire: "#74c7ec" + blue: "#89b4fa" + lavender: "#b4befe" + text: "#cdd6f4" + subtext1: "#bac2de" + subtext0: "#a6adc8" + overlay2: "#9399b2" + overlay1: "#7f849c" + overlay0: "#6c7086" + surface2: "#585b70" + surface1: "#45475a" + surface0: "#313244" + base: "#1e1e2e" + mantle: "#181825" + crust: "#11111b" +} + +$env.PROMPT_COMMAND = {|| + let last_exit_code = if $env.LAST_EXIT_CODE > 0 {$"(ansi $theme.red)($env.LAST_EXIT_CODE)(ansi rst)"} else {""} + $"(ansi $theme.yellow)(whoami)@(sys host | get hostname)(ansi rst):(ansi $theme.blue)(pwd)(ansi rst)\n($last_exit_code)" +} +$env.PROMPT_COMMAND_RIGHT = {|| + $"(ansi $theme.overlay1)(date now | format date "%H:%M:%S")(ansi reset)" +} +$env.PROMPT_INDICATOR = {|| + let indicator_color = if $env.LAST_EXIT_CODE > 0 {ansi $theme.red} else {ansi $theme.green} + $"($indicator_color)(0..<$env.SHLVL | each {">"} | str join)(ansi rst) " +} +$env.PROMPT_VI_NORMAL_INDICATOR = {|| + let indicator_color = if $env.LAST_EXIT_CODE > 0 {ansi $theme.red} else {ansi $theme.green} + $"($indicator_color)(0..<$env.SHLVL | each {"<"} | str join)(ansi rst) " +} +$env.PROMPT_VI_INSERT_INDICATOR = {|| + let indicator_color = if $env.LAST_EXIT_CODE > 0 {ansi $theme.red} else {ansi $theme.green} + $"($indicator_color)(0..<$env.SHLVL | each {"="} | str join)(ansi rst) " +} +$env.PROMPT_MULTILINE_INDICATOR = {|| + $"(0..<$env.SHLVL | each {char space} | str join) " +} +$env.TRANSIENT_PROMPT_COMMAND = "" +$env.TRANSIENT_PROMPT_COMMAND_RIGHT = "" +$env.TRANSIENT_PROMPT_INDICATOR = null +$env.TRANSIENT_PROMPT_VI_NORMAL_INDICATOR = null +$env.TRANSIENT_PROMPT_VI_INSERT_INDICATOR = null +$env.TRANSIENT_PROMPT_MULTILINE_INDICATOR = null + +$env.EDITOR = "hx" +$env.SHELL = "nu" +$env.UID = $"(id -u)" + alias zed = zeditor alias zn = zeditor -n diff --git a/home.nix b/home.nix @@ -5,6 +5,7 @@ }: { imports = [ ./starship.nix + # ./starship.nix # ./vesktop.nix ./zed-editor.nix ];