fix(prompt): switch from pure-prompt to starship

This commit is contained in:
genofire 2023-01-13 21:55:37 +01:00
parent 2dc698c8ab
commit 36e47947bd
2 changed files with 52 additions and 10 deletions

View File

@ -80,10 +80,29 @@
enableAutosuggestions = true; enableAutosuggestions = true;
enableSyntaxHighlighting = true; enableSyntaxHighlighting = true;
initExtra = '' # initExtra = ''
source ${pkgs.grml-zsh-config}/etc/zsh/zshrc # source ${pkgs.grml-zsh-config}/etc/zsh/zshrc
prompt pure # prompt pure
''; # '';
};
programs.starship = {
enable = true;
# enableNushellIntegration = true;
settings = {
directory ={
truncation_length = 0;
};
helm = {
disabled = true;
};
kubernetes = {
disabled = false;
format = "[$symbol$cluster( \($namespace\))]($style) in ";
detect_extensions = [
"package" # helm
];
};
};
}; };
programs.direnv.enable = true; programs.direnv.enable = true;
programs.gitui.enable = true; programs.gitui.enable = true;

View File

@ -56,8 +56,8 @@
unzip unzip
unrar unrar
home-manager home-manager
# nice prompt together with grml ## nice prompt together with grml
pure-prompt # pure-prompt
]; ];
environment.shellAliases = { environment.shellAliases = {
ip = "ip --color"; ip = "ip --color";
@ -84,12 +84,35 @@
autosuggestions.enable = true; autosuggestions.enable = true;
syntaxHighlighting.enable = true; syntaxHighlighting.enable = true;
# interactiveShellInit = '' # interactiveShellInit = ''
promptInit = '' # promptInit = ''
source ${pkgs.grml-zsh-config}/etc/zsh/zshrc # source ${pkgs.grml-zsh-config}/etc/zsh/zshrc
prompt pure; # prompt pure;
''; # '';
# promptInit = ""; # promptInit = "";
}; };
programs.starship = {
enable = true;
settings = {
directory ={
truncation_length = 0;
};
helm = {
disabled = true;
};
kubernetes = {
disabled = false;
format = "[$symbol$cluster( \($namespace\))]($style) in ";
detect_extensions = [
"package" # helm
];
detect_folders = [
"flux-system"
"helm"
"templates"
];
};
};
};
# tmux # tmux
imports = [ ./files/tmux.nix ]; imports = [ ./files/tmux.nix ];