dotfiles/programs/zsh.nix

51 lines
1,019 B
Nix
Raw Normal View History

2023-05-02 22:47:01 +02:00
{ config, pkgs, lib, ... }:
let
omz-plugins = [
"asdf"
"git"
"archlinux"
"brew"
"composer"
"colored-man-pages"
"extract"
"gradle"
"node"
"npm"
"nvm"
"rbenv"
"sudo"
"direnv"
"docker"
"docker-compose"
"golang"
"pip"
"history"
"vagrant"
];
in {
2023-05-02 22:47:01 +02:00
programs.zsh = {
enable = true;
enableAutosuggestions = true;
enableCompletion = true;
enableSyntaxHighlighting = true;
enableVteIntegration = 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";
};
zplug = {
2023-05-02 22:47:01 +02:00
enable = true;
plugins = map (x: {
name = "plugins/${x}";
tags = [ "from:oh-my-zsh" ];
}) omz-plugins;
2023-05-02 22:47:01 +02:00
};
};
2023-05-02 22:47:01 +02:00
}