44 lines
1.2 KiB
Nix
44 lines
1.2 KiB
Nix
{ pkgs, ... }:
|
||
|
||
{
|
||
programs.zsh = {
|
||
enable = true;
|
||
enableCompletion = true;
|
||
syntaxHighlighting.enable = true;
|
||
autosuggestion.enable = true;
|
||
|
||
initContent = "source /etc/nixos/home/lukas/p10k.zsh";
|
||
sessionVariables = {
|
||
POWERLEVEL9K_DISABLE_CONFIGURATION_WIZARD = "true";
|
||
};
|
||
|
||
|
||
|
||
zplug = {
|
||
enable = true;
|
||
plugins = [
|
||
{ name = "romkatv/powerlevel10k"; tags = [ as:theme depth:1 ]; }
|
||
];
|
||
};
|
||
|
||
shellAliases = {
|
||
".." = "cd ..";
|
||
ls = "eza --icons"; # plain directory listing
|
||
ll = "eza --icons -alh --git"; # long list, all, human, git status
|
||
la = "eza --icons -a"; # show all dot-files, short
|
||
lt = "eza -T --icons --git-ignore --level=4"; # pretty tree, two levels deep
|
||
|
||
gs = "git status --short --branch";
|
||
gl = "git log --oneline --graph --decorate";
|
||
|
||
cat ="bat --style=plain --pager=cat"; # pretty ‘cat’
|
||
less ="bat --style=plain --pager=less"; # pretty ‘less’
|
||
|
||
update = "sudo nixos-rebuild switch --flake /etc/nixos/#segfault-machine";
|
||
};
|
||
|
||
};
|
||
}
|
||
|
||
|