mirror of
https://github.com/thilobillerbeck/dotfiles.git
synced 2024-11-23 00:18:49 +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";
|
|
};
|
|
initExtra = ''
|
|
[ -d ~/.npm-global ] || mkdir ~/.npm-global
|
|
${pkgs.nodejs}/bin/npm config set prefix '~/.npm-global'
|
|
export PATH=~/.npm-global/bin:$PATH
|
|
'';
|
|
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";
|
|
};
|
|
}
|
|
];
|
|
};
|
|
}
|