zsh: switched from powerline to starship
This commit is contained in:
parent
458de861b1
commit
9ca3430e52
19
profiles/bash.nix
Normal file
19
profiles/bash.nix
Normal 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;
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
|
@ -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
7
profiles/starship.nix
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
starship # A minimal, blazing fast, and extremely customizable prompt for any shell
|
||||||
|
];
|
||||||
|
}
|
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue