Compare commits
2 Commits
45a795ab55
...
1dd3619c5a
| Author | SHA1 | Date |
|---|---|---|
|
|
1dd3619c5a | |
|
|
28776a1da8 |
|
|
@ -13,7 +13,7 @@
|
||||||
just
|
just
|
||||||
magic-wormhole
|
magic-wormhole
|
||||||
mediainfo
|
mediainfo
|
||||||
nil
|
nixd
|
||||||
pfetch
|
pfetch
|
||||||
whois
|
whois
|
||||||
yt-dlp
|
yt-dlp
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,9 @@
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
let
|
||||||
|
cfg = config.home-manager.users.agatha;
|
||||||
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
../../common/home_manager/helix.nix
|
../../common/home_manager/helix.nix
|
||||||
|
|
@ -25,6 +28,7 @@
|
||||||
fzf
|
fzf
|
||||||
ouch
|
ouch
|
||||||
ripgrep
|
ripgrep
|
||||||
|
(lib.mkIf (cfg.programs.starship.enable && cfg.programs.jujutsu.enable) (unstable.jj-starship))
|
||||||
];
|
];
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
|
|
@ -36,18 +40,17 @@
|
||||||
settings = {
|
settings = {
|
||||||
add_newline = false;
|
add_newline = false;
|
||||||
format = lib.concatStrings [
|
format = lib.concatStrings [
|
||||||
"[$hostname](bold red)"
|
"[λ](yellow) $hostname"
|
||||||
"$character"
|
|
||||||
"$directory"
|
"$directory"
|
||||||
];
|
];
|
||||||
right_format = lib.concatStrings [
|
right_format = lib.concatStrings [
|
||||||
"$git_branch"
|
"$\{custom.jj}"
|
||||||
" "
|
"$status"
|
||||||
"$cmd_duration"
|
"$cmd_duration"
|
||||||
];
|
];
|
||||||
character = {
|
|
||||||
success_symbol = "";
|
hostname = {
|
||||||
error_symbol = "[ ⇣](purple)";
|
format = "[$hostname](bold blue) ";
|
||||||
};
|
};
|
||||||
directory = {
|
directory = {
|
||||||
truncation_length = 2;
|
truncation_length = 2;
|
||||||
|
|
@ -56,17 +59,24 @@
|
||||||
style = "cyan";
|
style = "cyan";
|
||||||
read_only_style = "cyan";
|
read_only_style = "cyan";
|
||||||
};
|
};
|
||||||
|
custom.jj = {
|
||||||
|
when = "jj-starship detect";
|
||||||
|
shell = [
|
||||||
|
"jj-starship"
|
||||||
|
"--no-jj-prefix"
|
||||||
|
"--no-jj-status"
|
||||||
|
"--no-git-prefix"
|
||||||
|
"--no-git-status"
|
||||||
|
];
|
||||||
|
format = "$output ";
|
||||||
|
};
|
||||||
|
status = {
|
||||||
|
format = "[$common_meaning$maybe_int ](bright-cyan)";
|
||||||
|
disabled = false;
|
||||||
|
};
|
||||||
cmd_duration = {
|
cmd_duration = {
|
||||||
min_time = 10000;
|
min_time = 10000;
|
||||||
};
|
};
|
||||||
git_branch = {
|
|
||||||
format = "$symbol $branch";
|
|
||||||
symbol = "";
|
|
||||||
};
|
|
||||||
hostname = {
|
|
||||||
ssh_only = false;
|
|
||||||
format = "$hostname";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue