Working on termonal stuff
This commit is contained in:
@@ -1,4 +1,10 @@
|
|||||||
{ config, pkgs, lib, user, ... }:
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
user,
|
||||||
|
...
|
||||||
|
}:
|
||||||
{
|
{
|
||||||
# NixOS: Install Starship system-wide (optional)
|
# NixOS: Install Starship system-wide (optional)
|
||||||
environment.systemPackages = with pkgs; [ starship ];
|
environment.systemPackages = with pkgs; [ starship ];
|
||||||
@@ -6,23 +12,25 @@
|
|||||||
# Home Manager: Configure Starship for the user
|
# Home Manager: Configure Starship for the user
|
||||||
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
|
||||||
settings = {
|
customConfig = ''
|
||||||
# Example: Catppuccin Mocha theme
|
add_newline = false
|
||||||
add_newline = false;
|
format = "$all"
|
||||||
format = "$all";
|
|
||||||
[character]
|
[character]
|
||||||
success_symbol = "[❯](bold green)"
|
success_symbol = "[❯](bold green)"
|
||||||
error_symbol = "[❯](bold red)"
|
error_symbol = "[❯](bold red)"
|
||||||
vicmd_symbol = "[❮](bold blue)"
|
vicmd_symbol = "[❮](bold blue)"
|
||||||
|
|
||||||
[directory]
|
[directory]
|
||||||
truncation_length = 3
|
truncation_length = 3
|
||||||
style = "bold blue"
|
style = "bold blue"
|
||||||
|
|
||||||
[git_branch]
|
[git_branch]
|
||||||
symbol = " "
|
symbol = " "
|
||||||
style = "bold purple"
|
style = "bold purple"
|
||||||
format = "[$symbol$branch]($style) "
|
format = "[$symbol$branch]($style) "
|
||||||
};
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
# Optional: Manually ensure Starship init is in shell configs
|
# Optional: Manually ensure Starship init is in shell configs
|
||||||
|
|||||||
Reference in New Issue
Block a user