Working on termonal stuff
This commit is contained in:
+322
-322
File diff suppressed because it is too large
Load Diff
@@ -13,26 +13,31 @@
|
||||
home-manager.users.${user.username} = {
|
||||
programs.starship = {
|
||||
enable = true; # Enables Starship and adds init to shell configs
|
||||
customConfig = ''
|
||||
add_newline = false
|
||||
format = "$all"
|
||||
|
||||
[character]
|
||||
success_symbol = "[❯](bold green)"
|
||||
error_symbol = "[❯](bold red)"
|
||||
vicmd_symbol = "[❮](bold blue)"
|
||||
|
||||
[directory]
|
||||
truncation_length = 3
|
||||
style = "bold blue"
|
||||
|
||||
[git_branch]
|
||||
symbol = " "
|
||||
style = "bold purple"
|
||||
format = "[$symbol$branch]($style) "
|
||||
'';
|
||||
# Simple settings (flat Nix attributes)
|
||||
settings = {
|
||||
add_newline = false;
|
||||
};
|
||||
};
|
||||
|
||||
# Provide a full starship.toml via xdg.configFile
|
||||
xdg.configFile."starship.toml".text = ''
|
||||
format = "$all"
|
||||
|
||||
[character]
|
||||
success_symbol = "[❯](bold green)"
|
||||
error_symbol = "[❯](bold red)"
|
||||
vicmd_symbol = "[❮](bold blue)"
|
||||
|
||||
[directory]
|
||||
truncation_length = 3
|
||||
style = "bold blue"
|
||||
|
||||
[git_branch]
|
||||
symbol = " "
|
||||
style = "bold purple"
|
||||
format = "[$symbol$branch]($style) "
|
||||
'';
|
||||
|
||||
# Optional: Manually ensure Starship init is in shell configs
|
||||
xdg.configFile."bashrc".text = lib.concatStringsSep "\n" [
|
||||
"${config.programs.starship.extraInit}"
|
||||
|
||||
Reference in New Issue
Block a user