feat(home): move starship config to its own module

This commit is contained in:
Mohammad Rafiq 2025-06-22 14:29:16 +08:00
parent aedb6d3cf6
commit 0521bb516d
No known key found for this signature in database
2 changed files with 27 additions and 16 deletions

View file

@ -12,22 +12,6 @@
enable = true; enable = true;
nix-direnv.enable = true; nix-direnv.enable = true;
}; };
starship = {
enable = true;
settings = {
add_newline = false;
format = ''
$directory$character
'';
right_format = ''
$all
'';
git_branch.format = "[$symbol$branch(:$remote_branch)]($style) ";
shlvl.disabled = false;
hostname.disabled = true;
username.disabled = true;
};
};
}; };
home = { home = {
shellAliases = { shellAliases = {

View file

@ -0,0 +1,27 @@
{ lib, ... }:
let
inherit (lib.strings) concatStrings;
in
{
programs.starship = {
enable = true;
settings = {
add_newline = false;
format = concatStrings [
# First Line
## Left Prompt
"$hostname$directory"
"$fill"
## Right Prompt
"$all"
# Second Line
## Left Prompt
"$character"
];
git_branch.format = "[$symbol$branch(:$remote_branch)]($style) ";
shlvl.disabled = false;
username.disabled = true;
fill.symbol = " ";
};
};
}