mirror of
https://github.com/oddlama/nix-config.git
synced 2025-10-11 07:10:39 +02:00
feat: create starship configuration
This commit is contained in:
parent
ffb1d41d8c
commit
79129d60ea
5 changed files with 71 additions and 5 deletions
|
@ -3,11 +3,13 @@
|
|||
enable = true;
|
||||
settings =
|
||||
{
|
||||
tree_view = 1;
|
||||
highlight_base_name = 1;
|
||||
show_cpu_frequency = 1;
|
||||
show_cpu_temperature = 1;
|
||||
hide_kernel_threads = 1;
|
||||
hide_userland_threads = 1;
|
||||
sort_key = 46; # Sort by %CPU if not in tree mode
|
||||
}
|
||||
// (with config.lib.htop;
|
||||
leftMeters [
|
||||
|
|
|
@ -15,15 +15,78 @@
|
|||
"$character"
|
||||
];
|
||||
right_format = lib.concatStrings [
|
||||
"$status"
|
||||
"$cmd_duration"
|
||||
"$jobs"
|
||||
"$package"
|
||||
"$haskell"
|
||||
"$python"
|
||||
"$rust"
|
||||
"$nix_shell"
|
||||
"$line_break"
|
||||
"$jobs"
|
||||
"$time"
|
||||
];
|
||||
|
||||
username = {
|
||||
format = "[$user]($style) ";
|
||||
style_root = "red";
|
||||
style_user = "cyan";
|
||||
};
|
||||
hostname = {
|
||||
format = "[$ssh_symbol$hostname]($style) ";
|
||||
ssh_only = false;
|
||||
ssh_symbol = "🌐";
|
||||
style = "cyan";
|
||||
};
|
||||
directory = {
|
||||
fish_style_pwd_dir_length = 1;
|
||||
style = "bold blue";
|
||||
};
|
||||
character = {
|
||||
success_symbol = "\\$";
|
||||
error_symbol = "\\$";
|
||||
vimcmd_symbol = "[](bold green)";
|
||||
vimcmd_replace_one_symbol = "[](bold purple)";
|
||||
vimcmd_replace_symbol = "[](bold purple)";
|
||||
vimcmd_visual_symbol = "[](bold yellow)";
|
||||
};
|
||||
git_branch = {
|
||||
format = "[$symbol$branch]($style) ";
|
||||
symbol = " ";
|
||||
style = "green";
|
||||
};
|
||||
git_commit = {
|
||||
commit_hash_length = 8;
|
||||
format = "[$hash$tag]($style) ";
|
||||
style = "green";
|
||||
};
|
||||
git_status = {
|
||||
conflicted = "$count ";
|
||||
ahead = "⇡$count ";
|
||||
behind = "⇣$count ";
|
||||
diverged = "⇡$ahead_count⇣$behind_count ";
|
||||
untracked = "?$count ";
|
||||
stashed = "\\$$count ";
|
||||
modified = "!$count ";
|
||||
staged = "+$count ";
|
||||
renamed = "→$count ";
|
||||
deleted = "-$count ";
|
||||
format = "[$conflicted](red)[$stashed](magenta)[$staged](green)[$deleted](red)[$renamed](blue)[$modified](yellow)[$untracked](yellow)[$ahead_behind](green)";
|
||||
};
|
||||
status = {
|
||||
pipestatus = true;
|
||||
disabled = false;
|
||||
pipestatus_format = "$pipestatus => [$symbol$common_meaning$signal_name$maybe_int]($style)";
|
||||
pipestatus_segment_format = "[$symbol$status]($style)";
|
||||
format = "[$symbol$status$signal_name]($style)";
|
||||
};
|
||||
cmd_duration = {
|
||||
format = "[ $duration]($style) ";
|
||||
style = "yellow";
|
||||
};
|
||||
time = {
|
||||
format = "[ $time]($style) ";
|
||||
style = "cyan";
|
||||
disabled = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue