mirror of
https://github.com/traxys/Nixfiles.git
synced 2026-02-17 20:43:03 +01:00
minimal: Switch from powerlevel10k to starship
This commit is contained in:
parent
8833f42744
commit
3de3cd02a6
4 changed files with 106 additions and 1646 deletions
17
flake.lock
generated
17
flake.lock
generated
|
|
@ -1419,22 +1419,6 @@
|
|||
"type": "github"
|
||||
}
|
||||
},
|
||||
"powerlevel10k": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1724223745,
|
||||
"narHash": "sha256-H7DYDLNANFnws3pCANnMJAQIMDXCf9S+ggUOGUy1oO0=",
|
||||
"owner": "romkatv",
|
||||
"repo": "powerlevel10k",
|
||||
"rev": "a42e374e25226d2032a38b38fc544ec1d65b0d01",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "romkatv",
|
||||
"repo": "powerlevel10k",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"raclette": {
|
||||
"inputs": {
|
||||
"flake-utils": "flake-utils_12",
|
||||
|
|
@ -1511,7 +1495,6 @@
|
|||
"nixpkgs-traxys": "nixpkgs-traxys",
|
||||
"nixvim": "nixvim",
|
||||
"nur": "nur",
|
||||
"powerlevel10k": "powerlevel10k",
|
||||
"raclette": "raclette",
|
||||
"roaming_proxy": "roaming_proxy",
|
||||
"rust-overlay": "rust-overlay_8",
|
||||
|
|
|
|||
|
|
@ -77,10 +77,6 @@
|
|||
url = "github:chisui/zsh-nix-shell";
|
||||
flake = false;
|
||||
};
|
||||
powerlevel10k = {
|
||||
url = "github:romkatv/powerlevel10k";
|
||||
flake = false;
|
||||
};
|
||||
fast-syntax-highlighting = {
|
||||
url = "github:zdharma-continuum/fast-syntax-highlighting";
|
||||
flake = false;
|
||||
|
|
|
|||
108
minimal/hm.nix
108
minimal/hm.nix
|
|
@ -159,6 +159,112 @@
|
|||
};
|
||||
};
|
||||
|
||||
programs.starship = {
|
||||
enable = true;
|
||||
enableZshIntegration = true;
|
||||
settings =
|
||||
let
|
||||
background = "#3e3e3e";
|
||||
in
|
||||
{
|
||||
add_newline = true;
|
||||
|
||||
format = lib.concatStrings [
|
||||
"["
|
||||
"[](${background})"
|
||||
"$os"
|
||||
" "
|
||||
"$directory"
|
||||
" "
|
||||
"$git_branch"
|
||||
"$git_status"
|
||||
"](bg:${background})"
|
||||
"[](${background})"
|
||||
"$fill"
|
||||
"[](${background})"
|
||||
"["
|
||||
" "
|
||||
"$status"
|
||||
"$cmd_duration"
|
||||
"$time"
|
||||
"](bg:${background})"
|
||||
"[](${background})"
|
||||
"\n"
|
||||
" $character"
|
||||
];
|
||||
|
||||
fill = {
|
||||
symbol = "·";
|
||||
style = background;
|
||||
};
|
||||
|
||||
directory = {
|
||||
style = "bold cyan bg:${background}";
|
||||
read_only_style = "fg:red bg:${background}";
|
||||
};
|
||||
|
||||
git_branch = {
|
||||
symbol = " ";
|
||||
format = "[$symbol$branch]($style) ";
|
||||
style = "bold purple bg:${background}";
|
||||
};
|
||||
|
||||
git_status =
|
||||
let
|
||||
red = "#ee311a";
|
||||
in
|
||||
{
|
||||
format = "[$conflicted$stashed$staged$ahead_behind$deleted$renamed$modified$untracked]($style)";
|
||||
style = "bg:${background}";
|
||||
ahead = "[$count](green bg:${background}) ";
|
||||
behind = "[$count](green bg:${background}) ";
|
||||
stashed = "*$count ";
|
||||
renamed = "~$count ";
|
||||
staged = "+ ";
|
||||
untracked = "?$count ";
|
||||
diverged = "[$ahead_count$behind_count](green bg:${background}) ";
|
||||
conflicted = "[$count](${red} bg:${background}) ";
|
||||
modified = "!$count ";
|
||||
deleted = "[✘$count ](${red} bg:${background})";
|
||||
};
|
||||
|
||||
os = {
|
||||
disabled = false;
|
||||
style = "bg:${background}";
|
||||
symbols = rec {
|
||||
NixOS = " ";
|
||||
Redhat = " ";
|
||||
RedHatEnterprise = Redhat;
|
||||
Fedora = " ";
|
||||
};
|
||||
};
|
||||
|
||||
time = {
|
||||
disabled = false;
|
||||
style = "bold yellow bg:${background}";
|
||||
format = "$time ";
|
||||
};
|
||||
|
||||
cmd_duration = {
|
||||
disabled = false;
|
||||
format = "[$duration ]($style) ";
|
||||
style = "bold yellow bg:${background}";
|
||||
};
|
||||
|
||||
status = {
|
||||
disabled = false;
|
||||
format = "[$symbol$status( $signal_name)]($style) ";
|
||||
pipestatus_segment_format = "[$symbol$status]($style)";
|
||||
pipestatus_format = "\\[$pipestatus\\] [$symbol$signal_name]($style) ";
|
||||
pipestatus_separator = " | ";
|
||||
style = "bold red bg:#3e3e3e";
|
||||
map_symbol = true;
|
||||
pipestatus = true;
|
||||
sigint_symbol = "";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
enableCompletion = true;
|
||||
|
|
@ -192,8 +298,6 @@
|
|||
|
||||
initExtra = ''
|
||||
export PATH="$PATH:$HOME/bin";
|
||||
source ${./p10k.zsh}
|
||||
source ${inputs.powerlevel10k}/powerlevel10k.zsh-theme
|
||||
if [ -f "$HOME/.zvars" ]; then
|
||||
source "$HOME/.zvars"
|
||||
fi
|
||||
|
|
|
|||
1623
minimal/p10k.zsh
1623
minimal/p10k.zsh
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue