feat(home): move starship config to its own module
This commit is contained in:
parent
aedb6d3cf6
commit
0521bb516d
2 changed files with 27 additions and 16 deletions
|
@ -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 = {
|
||||||
|
|
27
homes/x86_64-linux/rafiq/cli/utilities/starship.nix
Normal file
27
homes/x86_64-linux/rafiq/cli/utilities/starship.nix
Normal 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 = " ";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue