Move starship configuration to common
This commit is contained in:
parent
bccd720ab6
commit
301125ae94
@ -201,49 +201,6 @@ in
|
|||||||
# enable = true;
|
# enable = true;
|
||||||
# };
|
# };
|
||||||
|
|
||||||
programs.starship = {
|
|
||||||
enable = true;
|
|
||||||
enableZshIntegration = true;
|
|
||||||
|
|
||||||
settings = {
|
|
||||||
format = lib.concatStrings [
|
|
||||||
"$username"
|
|
||||||
"$hostname"
|
|
||||||
"$directory"
|
|
||||||
"$character"
|
|
||||||
];
|
|
||||||
right_format = lib.concatStrings [
|
|
||||||
"$git_branch"
|
|
||||||
"$git_commit"
|
|
||||||
"$git_state"
|
|
||||||
"$git_metrics"
|
|
||||||
"$git_status"
|
|
||||||
"($cmd_duration)"
|
|
||||||
];
|
|
||||||
scan_timeout = 25;
|
|
||||||
add_newline = false;
|
|
||||||
continuation_prompt = "[▸▹ ](dimmed white)";
|
|
||||||
follow_symlinks = false;
|
|
||||||
directory = {
|
|
||||||
truncate_to_repo = false;
|
|
||||||
truncation_length = 20;
|
|
||||||
truncation_symbol = "…/";
|
|
||||||
};
|
|
||||||
|
|
||||||
cmd_duration = {
|
|
||||||
min_time = 100;
|
|
||||||
show_milliseconds = true;
|
|
||||||
format = "took [$duration]($style) ";
|
|
||||||
style = "bold yellow";
|
|
||||||
};
|
|
||||||
|
|
||||||
character = {
|
|
||||||
success_symbol = "✓";
|
|
||||||
error_symbol = "⚠";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.zsh = {
|
programs.zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
|
|||||||
@ -52,4 +52,47 @@ in
|
|||||||
bindkey '^[[1;3D' backward-word
|
bindkey '^[[1;3D' backward-word
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
programs.starship = {
|
||||||
|
enable = true;
|
||||||
|
enableZshIntegration = true;
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
format = lib.concatStrings [
|
||||||
|
"$username"
|
||||||
|
"$hostname"
|
||||||
|
"$directory"
|
||||||
|
"$character"
|
||||||
|
];
|
||||||
|
right_format = lib.concatStrings [
|
||||||
|
"$git_branch"
|
||||||
|
"$git_commit"
|
||||||
|
"$git_state"
|
||||||
|
"$git_metrics"
|
||||||
|
"$git_status"
|
||||||
|
"($cmd_duration)"
|
||||||
|
];
|
||||||
|
scan_timeout = 25;
|
||||||
|
add_newline = false;
|
||||||
|
continuation_prompt = "[▸▹ ](dimmed white)";
|
||||||
|
follow_symlinks = false;
|
||||||
|
directory = {
|
||||||
|
truncate_to_repo = false;
|
||||||
|
truncation_length = 20;
|
||||||
|
truncation_symbol = "…/";
|
||||||
|
};
|
||||||
|
|
||||||
|
cmd_duration = {
|
||||||
|
min_time = 100;
|
||||||
|
show_milliseconds = true;
|
||||||
|
format = "took [$duration]($style) ";
|
||||||
|
style = "bold yellow";
|
||||||
|
};
|
||||||
|
|
||||||
|
character = {
|
||||||
|
success_symbol = "[›](bold green)";
|
||||||
|
error_symbol = "[›](bold red)";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@ -146,48 +146,6 @@ in
|
|||||||
enableZshIntegration = true;
|
enableZshIntegration = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.starship = {
|
|
||||||
enable = true;
|
|
||||||
enableZshIntegration = true;
|
|
||||||
|
|
||||||
settings = {
|
|
||||||
format = lib.concatStrings [
|
|
||||||
"$username"
|
|
||||||
"$hostname"
|
|
||||||
"$directory"
|
|
||||||
"$character"
|
|
||||||
];
|
|
||||||
right_format = lib.concatStrings [
|
|
||||||
"$git_branch"
|
|
||||||
"$git_commit"
|
|
||||||
"$git_state"
|
|
||||||
"$git_metrics"
|
|
||||||
"$git_status"
|
|
||||||
"($cmd_duration)"
|
|
||||||
];
|
|
||||||
scan_timeout = 25;
|
|
||||||
add_newline = false;
|
|
||||||
continuation_prompt = "[▸▹ ](dimmed white)";
|
|
||||||
follow_symlinks = false;
|
|
||||||
directory = {
|
|
||||||
truncate_to_repo = false;
|
|
||||||
truncation_length = 20;
|
|
||||||
truncation_symbol = "…/";
|
|
||||||
};
|
|
||||||
|
|
||||||
cmd_duration = {
|
|
||||||
min_time = 100;
|
|
||||||
show_milliseconds = true;
|
|
||||||
format = "took [$duration]($style) ";
|
|
||||||
style = "bold yellow";
|
|
||||||
};
|
|
||||||
|
|
||||||
character = {
|
|
||||||
success_symbol = "✓";
|
|
||||||
error_symbol = "⚠";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
programs.zsh = {
|
programs.zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user