{ config, pkgs, lib, ...}: { # Required for zsh autocompletion environment.pathsToLink = [ "/share/zsh" ]; programs.zsh.enable = true; home-manager.users.weckyy702 = { pkgs, ... }: { home.shell.enableZshIntegration = true; programs.zsh = { enable = true; package = pkgs.zsh; enableCompletion = true; autocd = true; autosuggestion.enable = true; plugins = [ { name = "powerlevel10k-config"; src = ./.; file="p10k.zsh"; } { name = "zsh-powerlevel10k"; src = "${pkgs.zsh-powerlevel10k}/share/zsh-powerlevel10k"; file="powerlevel10k.zsh-theme"; } ]; oh-my-zsh = { enable = true; theme = "robbyrussell"; plugins = [ "git" "sudo" ]; }; syntaxHighlighting = { enable = true; highlighters = [ "brackets" ]; }; initContent = lib.mkBefore '' # Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc. # Initialization code that may require console input (password prompts, [y/n] # confirmations, etc.) must go above this block; everything else may go below. if [[ -r "''${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-''${(%):-%n}.zsh" ]]; then source "''${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-''${(%):-%n}.zsh" fi ''; shellAliases = { #TODO }; }; }; }