mirror of
https://github.com/thilobillerbeck/dotfiles.git
synced 2024-12-23 04:13:05 +01:00
38 lines
1 KiB
Nix
38 lines
1 KiB
Nix
{ pkgs, ... }:
|
|
|
|
{
|
|
programs.zsh = {
|
|
enable = true;
|
|
autosuggestion.enable = true;
|
|
enableCompletion = true;
|
|
enableVteIntegration = true;
|
|
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";
|
|
};
|
|
initExtra = ''
|
|
export PATH=~/.npm-global/bin:$PATH
|
|
source ${pkgs.nix-index}/etc/profile.d/command-not-found.sh
|
|
'';
|
|
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";
|
|
};
|
|
}
|
|
];
|
|
};
|
|
}
|