Swap prezto for starship

This commit is contained in:
Sam W 2022-01-10 15:31:58 +00:00
parent aa68e8619a
commit e12f558061
1 changed files with 12 additions and 4 deletions

View File

@ -18,10 +18,7 @@ in {
hmswitch = ''home-manager switch --flake ".#$(hostname -s)"''; hmswitch = ''home-manager switch --flake ".#$(hostname -s)"'';
nrswitch = "nixos-rebuild switch --flake '.#'"; nrswitch = "nixos-rebuild switch --flake '.#'";
}; };
prezto = {
enable = true;
prompt.theme = "giddie";
};
plugins = [{ plugins = [{
name = "zsh-z"; name = "zsh-z";
file = "share/zsh-z/zsh-z.plugin.zsh"; file = "share/zsh-z/zsh-z.plugin.zsh";
@ -29,6 +26,17 @@ in {
}]; }];
}; };
starship = {
enable = true;
settings = {
add_newline = false;
format = "$username$hostname$shlvl$directory$git_branch$git_commit$git_state$git_metrics$git_status$hg_branch$docker_context$golang$kotlin$nodejs$python$rust$terraform$nix_shell$memory_usage$aws$gcloud$openstack$azure$env_var$crystal$custom$sudo$cmd_duration$line_break$jobs$status$shell$character";
python.format = '' [py ''${pyenv_prefix}(''${version} )(\($virtualenv\) )]($style)'';
nodejs.format = '' [js ($version )]($style)'';
git_branch.format = '' [$symbol$branch]($style)'';
};
};
direnv = { direnv = {
enable = true; enable = true;
nix-direnv.enable = true; nix-direnv.enable = true;