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} = {
|
home-manager.users.${user.username} = {
|
||||||
programs.starship = {
|
programs.starship = {
|
||||||
enable = true; # Enables Starship and adds init to shell configs
|
enable = true; # Enables Starship and adds init to shell configs
|
||||||
customConfig = ''
|
# Simple settings (flat Nix attributes)
|
||||||
add_newline = false
|
settings = {
|
||||||
format = "$all"
|
add_newline = false;
|
||||||
|
};
|
||||||
[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) "
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# 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
|
# Optional: Manually ensure Starship init is in shell configs
|
||||||
xdg.configFile."bashrc".text = lib.concatStringsSep "\n" [
|
xdg.configFile."bashrc".text = lib.concatStringsSep "\n" [
|
||||||
"${config.programs.starship.extraInit}"
|
"${config.programs.starship.extraInit}"
|
||||||
|
|||||||
Reference in New Issue
Block a user