{pkgs, ...}: { home.packages = with pkgs; [ fzf # command-line fuzzy finder ]; programs.zsh = { enable = true; # Enable extra features autosuggestion = { enable = true; }; syntaxHighlighting = { enable = true; }; enableCompletion = true; dotDir = ".config/zsh"; # Commands that should be added to to top of '.zshrc' initExtraFirst = '' ''; # Aliases shellAliases = { c = "clear"; r = "cd ~/.repositories"; d = "cd ~/.repositories/dotfiles.nix"; la = "ls -a"; ll = "ls -l"; tt = "wezterm cli set-tab-title "; deploy-viridian = "nixos-rebuild switch --flake .#viridian --target-host viridian --use-remote-sudo"; mount-backup = "sshfs viridian:/srv/shares/sajenim /home/sajenim/.backup"; mount-turing = "sshfs turing:/home/jwils254 /home/sajenim/.turing"; }; # Install plugins plugins = [ { name = "fzf-tab"; src = pkgs.fetchFromGitHub { owner = "Aloxaf"; repo = "fzf-tab"; rev = "5a81e13792a1eed4a03d2083771ee6e5b616b9ab"; sha256 = "dPe5CLCAuuuLGRdRCt/nNruxMrP9f/oddRxERkgm1FE="; }; } ]; # Extra commands that should be added to '.zshrc' initExtra = '' eval "$(direnv hook zsh)" source ${pkgs.zsh-vi-mode}/share/zsh-vi-mode/zsh-vi-mode.plugin.zsh path+=('/home/sajenim/.repositories/sysadmin.sh/bin') bindkey "^[[1;5C" forward-word bindkey "^[[1;5D" backward-word export _JAVA_AWT_WM_NONREPARENTING=1 export PATH PROMPT='%F{blue}%n@%m %F{cyan}%~ %F{red}♥ %f'; ''; }; }