diff --git a/pkgs/starship/biscuit.nix b/pkgs/starship/biscuit.nix index e682a27..dcb2c2b 100644 --- a/pkgs/starship/biscuit.nix +++ b/pkgs/starship/biscuit.nix @@ -1,63 +1,8 @@ {...}: { programs.starship = { enable = true; - settings = { - add_newline = true; - format = '' - $username\ - $hostname\ - $directory\ - $git_branch\ - $git_state\ - $git_status\ - $cmd_duration\ - $line_break\ - $python\ - $character''; - # Optional: You can set right_format = "" if you want - right_format = ""; - - directory = { - style = "blue"; - }; - - character = { - success_symbol = "[❯](purple)"; - error_symbol = "[❯](red)"; - vimcmd_symbol = "[❮](green)"; - }; - - git_branch = { - format = "[$branch]($style)"; - style = "bright-black"; - }; - - git_state = { - format = "([$state( $progress_current/$progress_total)]($style)) "; - style = "bright-black"; - }; - - git_status = { - format = " ($ahead_behind$stashed)]($style)"; - style = "cyan"; - conflicted = "​"; # zero-width space - untracked = "​"; - modified = "​"; - staged = "​"; - renamed = "​"; - deleted = "​"; - stashed = "≡"; - }; - - cmd_duration = { - format = "[$duration]($style) "; - style = "yellow"; - }; - - python = { - format = "[$virtualenv]($style) "; - style = "bright-black"; - }; - }; + }; + home.file.".config/starship.toml" = { + source = "./pure.toml"; }; } diff --git a/pkgs/starship/pure.toml b/pkgs/starship/pure.toml new file mode 100644 index 0000000..9636f52 --- /dev/null +++ b/pkgs/starship/pure.toml @@ -0,0 +1,46 @@ +format = """ +$username\ +$hostname\ +$directory\ +$git_branch\ +$git_state\ +$git_status\ +$cmd_duration\ +$line_break\ +$python\ +$character""" + +[directory] +style = "blue" + +[character] +success_symbol = "[❯](purple)" +error_symbol = "[❯](red)" +vimcmd_symbol = "[❮](green)" + +[git_branch] +format = "[$branch]($style)" +style = "bright-black" + +[git_status] +format = "[[(*$conflicted$untracked$modified$staged$renamed$deleted)](218) ($ahead_behind$stashed)]($style)" +style = "cyan" +conflicted = "​" +untracked = "​" +modified = "​" +staged = "​" +renamed = "​" +deleted = "​" +stashed = "≡" + +[git_state] +format = '\([$state( $progress_current/$progress_total)]($style)\) ' +style = "bright-black" + +[cmd_duration] +format = "[$duration]($style) " +style = "yellow" + +[python] +format = "[$virtualenv]($style) " +style = "bright-black"