2021-04-11 18:00:14 +02:00
|
|
|
{ pkgs, ... }:
|
2021-04-10 14:46:40 +02:00
|
|
|
{
|
|
|
|
programs.zsh = {
|
|
|
|
enable = true;
|
|
|
|
zplug = {
|
|
|
|
enable = true;
|
|
|
|
plugins = [
|
|
|
|
{ name = "romkatv/powerlevel10k"; tags = [ "as:theme" "depth:1" ]; }
|
2021-04-10 14:50:48 +02:00
|
|
|
{ name = "chisui/zsh-nix-shell"; }
|
2021-04-10 14:46:40 +02:00
|
|
|
];
|
|
|
|
};
|
|
|
|
initExtraFirst = ''
|
2021-04-10 21:12:06 +02:00
|
|
|
if [ -z "$TMUX" ] && [[ $- == *i* ]]
|
|
|
|
then
|
|
|
|
(tmux ls | grep -vq attached && tmux at) || tmux
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
2021-04-10 14:50:48 +02:00
|
|
|
${builtins.readFile ./p10k.zsh.initfirst}
|
2021-04-10 14:46:40 +02:00
|
|
|
'';
|
|
|
|
initExtra = ''
|
2021-04-11 18:00:14 +02:00
|
|
|
source "${pkgs.fzf}/share/fzf/key-bindings.zsh"
|
|
|
|
source "${pkgs.fzf}/share/fzf/completion.zsh"
|
|
|
|
|
2021-04-10 14:50:48 +02:00
|
|
|
${builtins.readFile ./p10k.zsh}
|
2021-04-10 14:46:40 +02:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|