pkgs: Starship
This commit is contained in:
parent
6049fec394
commit
944f5b1159
@ -1,10 +1,51 @@
|
|||||||
{ config, pkgs, ... }: {
|
{ config, pkgs, ... }: {
|
||||||
home.packages = [ pkgs.nh ];
|
home.packages = [ pkgs.nh ];
|
||||||
programs.zoxide.enable = true;
|
programs = {
|
||||||
programs.zsh = {
|
zoxide.enable = true;
|
||||||
|
|
||||||
|
starship = {
|
||||||
|
enable = true;
|
||||||
|
enableZshIntegration = true;
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
add_newline = true;
|
||||||
|
format = ''
|
||||||
|
$os$directory$git_branch$git_status
|
||||||
|
$status$character
|
||||||
|
'';
|
||||||
|
right_format = "$all";
|
||||||
|
|
||||||
|
cmake.disabled = true;
|
||||||
|
cmd_duration = {
|
||||||
|
format = "";
|
||||||
|
show_notifications = true;
|
||||||
|
notification_timeout = 10000;
|
||||||
|
};
|
||||||
|
git_branch.format = "on [$branch(:$remote_branch)]($style) ";
|
||||||
|
git_metrics.disabled = false;
|
||||||
|
git_status = {
|
||||||
|
conflicted = "!";
|
||||||
|
up_to_date = "ok";
|
||||||
|
stashed = "S";
|
||||||
|
modified = "M";
|
||||||
|
};
|
||||||
|
directory = {
|
||||||
|
truncation_length = 3;
|
||||||
|
fish_style_pwd_dir_length = 1;
|
||||||
|
read_only = " RO";
|
||||||
|
};
|
||||||
|
os.disabled = false;
|
||||||
|
python = {
|
||||||
|
symbol = "py ";
|
||||||
|
python_binary = ["python3" "python"];
|
||||||
|
};
|
||||||
|
status.disabled = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableCompletion = true;
|
enableCompletion = true;
|
||||||
# enableAutosuggestions = true;
|
|
||||||
autosuggestion.enable = true;
|
autosuggestion.enable = true;
|
||||||
syntaxHighlighting.enable = true;
|
syntaxHighlighting.enable = true;
|
||||||
|
|
||||||
@ -39,10 +80,7 @@
|
|||||||
history.size = 10000;
|
history.size = 10000;
|
||||||
history.path = "${config.xdg.dataHome}/zsh/history";
|
history.path = "${config.xdg.dataHome}/zsh/history";
|
||||||
|
|
||||||
oh-my-zsh = {
|
oh-my-zsh.enable = true;
|
||||||
enable = true;
|
|
||||||
plugins = [ "git" "sudo" ];
|
|
||||||
theme = "agnoster"; # blinks is also really nice
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user