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;
enableSyntaxHighlighting = true;
initExtra = ''
source ${pkgs.grml-zsh-config}/etc/zsh/zshrc
prompt pure
'';
# initExtra = ''
# source ${pkgs.grml-zsh-config}/etc/zsh/zshrc
# 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.gitui.enable = true;

View File

@ -56,8 +56,8 @@
unzip
unrar
home-manager
# nice prompt together with grml
pure-prompt
## nice prompt together with grml
# pure-prompt
];
environment.shellAliases = {
ip = "ip --color";
@ -84,12 +84,35 @@
autosuggestions.enable = true;
syntaxHighlighting.enable = true;
# interactiveShellInit = ''
promptInit = ''
source ${pkgs.grml-zsh-config}/etc/zsh/zshrc
prompt pure;
'';
# promptInit = ''
# source ${pkgs.grml-zsh-config}/etc/zsh/zshrc
# prompt pure;
# '';
# 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
imports = [ ./files/tmux.nix ];