48 lines
1 KiB
Nix
48 lines
1 KiB
Nix
{ pkgs, ... }:
|
|
{
|
|
home.packages = with pkgs; [
|
|
nix-zsh-completions
|
|
zsh-completions
|
|
];
|
|
|
|
programs.zsh = {
|
|
enable = true;
|
|
autocd = true;
|
|
plugins = [
|
|
# {
|
|
# name = "powerlevel10k";
|
|
# src = pkgs.zsh-powerlevel10k;
|
|
# file = "share/zsh-powerlevel10k/powerlevel10k.zsh-theme";
|
|
# }
|
|
];
|
|
initExtraBeforeCompInit = ''
|
|
zstyle ':completion:*' menu select
|
|
setopt CORRECT
|
|
setopt AUTO_CD
|
|
setopt CHASE_LINKS
|
|
setopt PUSHD_TO_HOME
|
|
'';
|
|
# localVariables = {
|
|
# POWERLEVEL9K_LEFT_PROMPT_ELEMENTS = [ "os_icon" "dir" "vcs" "prompt_char" ];
|
|
# POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS = [ "status" "command_execution_time" "background_jobs" "direnv" "nix_shell" "time" "vpn_ip" ]
|
|
# };
|
|
|
|
oh-my-zsh = {
|
|
enable = true;
|
|
plugins = [
|
|
"alias-finder"
|
|
"common-aliases"
|
|
"cp"
|
|
"dirhistory"
|
|
"docker-compose"
|
|
"docker"
|
|
"extract"
|
|
"git-auto-fetch"
|
|
"git"
|
|
"sudo"
|
|
];
|
|
extraConfig = "";
|
|
};
|
|
|
|
};
|
|
}
|