feat: add starship
Signed-off-by: Lander Van den Bulcke <landervandenbulcke@gmail.com>
This commit is contained in:
parent
b59dc0aab6
commit
6b0162ba3a
2 changed files with 90 additions and 0 deletions
|
|
@ -9,6 +9,7 @@
|
|||
inputs.catppuccin.homeManagerModules.catppuccin
|
||||
|
||||
./git
|
||||
./starship.nix
|
||||
./vim.nix
|
||||
./zsh.nix
|
||||
];
|
||||
|
|
|
|||
89
home/lander/global/starship.nix
Normal file
89
home/lander/global/starship.nix
Normal file
|
|
@ -0,0 +1,89 @@
|
|||
{ lib, ... }:
|
||||
{
|
||||
programs = {
|
||||
starship = {
|
||||
enable = true;
|
||||
enableZshIntegration = true;
|
||||
settings = lib.mkDefault {
|
||||
format = lib.concatStrings [
|
||||
"$username"
|
||||
"$hostname"
|
||||
"$directory"
|
||||
"$git_branch"
|
||||
"$git_state"
|
||||
"$git_status"
|
||||
"$nix_shell"
|
||||
"$fill"
|
||||
"$python"
|
||||
"$golang"
|
||||
"$status"
|
||||
"$line_break"
|
||||
"$character"
|
||||
];
|
||||
|
||||
fill.symbol = " ";
|
||||
hostname.ssh_symbol = "";
|
||||
python.format = "([ $virtualenv]($style)) ";
|
||||
rust.symbol = " ";
|
||||
status.disabled = false;
|
||||
username.format = "[$user]($style)@";
|
||||
|
||||
character = {
|
||||
success_symbol = "[❯](purple)";
|
||||
error_symbol = "[❯](red)";
|
||||
vicmd_symbol = "[❯](green)";
|
||||
};
|
||||
|
||||
directory = {
|
||||
read_only = " ";
|
||||
home_symbol = " ~";
|
||||
style = "blue";
|
||||
truncate_to_repo = false;
|
||||
truncation_length = 5;
|
||||
truncation_symbol = ".../";
|
||||
};
|
||||
|
||||
docker_context.symbol = " ";
|
||||
|
||||
git_branch = {
|
||||
symbol = " ";
|
||||
format = "[ $branch]($style)";
|
||||
style = "green";
|
||||
};
|
||||
|
||||
git_status = {
|
||||
format = "[[( $conflicted$untracked$modified$staged$renamed$deleted)](218) ($ahead_behind$stashed)]($style)";
|
||||
style = "cyan";
|
||||
conflicted = "=$count ";
|
||||
untracked = "?$count ";
|
||||
modified = "!$count ";
|
||||
staged = "+$count ";
|
||||
renamed = "»$count ";
|
||||
deleted = "✘$count ";
|
||||
stashed = "≡";
|
||||
};
|
||||
|
||||
git_state = {
|
||||
format = "\([$state( $progress_current/$progress_total)]($style)\) ";
|
||||
style = "bright-black";
|
||||
};
|
||||
|
||||
golang = {
|
||||
symbol = " ";
|
||||
format = "[$symbol$version](cyan bold) ";
|
||||
};
|
||||
|
||||
kubernetes = {
|
||||
disabled = false;
|
||||
format = "[$symbol$context](cyan bold) ";
|
||||
};
|
||||
|
||||
nix_shell = {
|
||||
disabled = false;
|
||||
symbol = "❄️ ";
|
||||
format = "via [$symbol\($name\)]($style)";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue