dotfiles/home-manager/programs/zsh.nix

39 lines
1 KiB
Nix
Raw Normal View History

2024-02-27 02:54:02 +01:00
{ pkgs, ... }:
2024-03-18 22:53:37 +01:00
{
2023-05-02 22:47:01 +02:00
programs.zsh = {
enable = true;
2024-03-18 15:43:15 +01:00
autosuggestion.enable = true;
enableCompletion = true;
enableVteIntegration = true;
2023-08-21 02:24:55 +02:00
syntaxHighlighting.enable = true;
shellAliases = {
pub-ipv4 = "curl ip4.clerie.de";
serve = "python -m SimpleHTTPServer 8080";
week = "date +%V";
path = "echo -e \${PATH//:/\\n}";
distro = "cat /etc/*-release";
reload = "source ~/.zshrc";
undo-git-reset-head = "git reset 'HEAD@{1}'";
update-local = "bash $HOME/.dotfiles/install";
sudo = "sudo --preserve-env=PATH env";
};
2023-05-22 20:17:53 +02:00
initExtra = ''
2023-10-04 02:09:37 +02:00
export PATH=~/.npm-global/bin:$PATH
2024-05-13 14:28:18 +02:00
source ${pkgs.nix-index}/etc/profile.d/command-not-found.sh
2023-05-22 20:17:53 +02:00
'';
2024-03-18 22:53:37 +01:00
plugins = [
{
name = "zsh-nix-shell";
file = "nix-shell.plugin.zsh";
src = pkgs.fetchFromGitHub {
owner = "chisui";
repo = "zsh-nix-shell";
rev = "v0.8.0";
sha256 = "1lzrn0n4fxfcgg65v0qhnj7wnybybqzs4adz7xsrkgmcsr0ii8b7";
};
}
];
};
2023-05-02 22:47:01 +02:00
}