pkgs: Starship
This commit is contained in:
parent
6049fec394
commit
944f5b1159
@ -1,10 +1,51 @@
|
||||
{ config, pkgs, ... }: {
|
||||
home.packages = [ pkgs.nh ];
|
||||
programs.zoxide.enable = true;
|
||||
programs.zsh = {
|
||||
programs = {
|
||||
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;
|
||||
enableCompletion = true;
|
||||
# enableAutosuggestions = true;
|
||||
autosuggestion.enable = true;
|
||||
syntaxHighlighting.enable = true;
|
||||
|
||||
@ -39,10 +80,7 @@
|
||||
history.size = 10000;
|
||||
history.path = "${config.xdg.dataHome}/zsh/history";
|
||||
|
||||
oh-my-zsh = {
|
||||
enable = true;
|
||||
plugins = [ "git" "sudo" ];
|
||||
theme = "agnoster"; # blinks is also really nice
|
||||
oh-my-zsh.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user