mirror of
https://github.com/thilobillerbeck/dotfiles.git
synced 2025-03-15 20:01:55 +01:00
32 lines
821 B
Nix
32 lines
821 B
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";
|
|
};
|
|
antidote = {
|
|
enable = true;
|
|
plugins = [
|
|
"ohmyzsh/ohmyzsh path:plugins/dotenv"
|
|
];
|
|
};
|
|
initExtraFirst = ''
|
|
ZSH_DOTENV_PROMPT=false
|
|
export PATH=~/.npm-global/bin:$PATH
|
|
'';
|
|
};
|
|
}
|