zsh: switched from powerline to starship

This commit is contained in:
Serĉanto de Scio 2021-07-22 10:02:25 +10:00
parent 458de861b1
commit 9ca3430e52
Signed by: sercanto
GPG key ID: 7DBA9F5689EFB6AA
4 changed files with 31 additions and 2 deletions

19
profiles/bash.nix Normal file
View file

@ -0,0 +1,19 @@
# Configuration common to all my servers
{ config, ... }:
{
# Program defaults for all hosts
programs.bash = {
interactiveShellInit = ''
export TERM="xterm-256color"
test -r ~/.dir_colors && eval $(dircolors ~/.dir_colors)
'';
promptInit = ''
eval "$(starship init bash)"
'';
vteIntegration = true;
};
}

View file

@ -5,9 +5,11 @@
{ {
imports = [ imports = [
../profiles/bash.nix
./chrony.nix ./chrony.nix
../profiles/neovim.nix ../profiles/neovim.nix
../profiles/logrotate.nix ../profiles/logrotate.nix
../profiles/starship.nix
./tmux.nix ./tmux.nix
./zsh.nix ./zsh.nix
]; ];

7
profiles/starship.nix Normal file
View file

@ -0,0 +1,7 @@
{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [
starship # A minimal, blazing fast, and extremely customizable prompt for any shell
];
}

View file

@ -27,9 +27,10 @@
"fzf" "fzf"
"git" "git"
]; ];
theme = "powerlevel9k";
}; };
promptInit = "source ${pkgs.zsh-powerlevel9k}/share/zsh-powerlevel9k/powerlevel9k.zsh-theme"; promptInit = ''
eval "$(starship init zsh)"
'';
vteIntegration = true; vteIntegration = true;
}; };