mirror of
https://github.com/thilobillerbeck/dotfiles.git
synced 2024-12-23 12:23:05 +01:00
53 lines
1.2 KiB
Nix
53 lines
1.2 KiB
Nix
{ pkgs, ... }:
|
|
let
|
|
omz-plugins = [
|
|
"git"
|
|
"archlinux"
|
|
"composer"
|
|
"colored-man-pages"
|
|
"extract"
|
|
"gradle"
|
|
"node"
|
|
"npm"
|
|
"rbenv"
|
|
"sudo"
|
|
"direnv"
|
|
"docker"
|
|
"docker-compose"
|
|
"golang"
|
|
"pip"
|
|
"history"
|
|
"vagrant"
|
|
];
|
|
in {
|
|
programs.zsh = {
|
|
enable = true;
|
|
enableAutosuggestions = 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";
|
|
};
|
|
zplug = {
|
|
enable = true;
|
|
plugins = map (x: {
|
|
name = "plugins/${x}";
|
|
tags = [ "from:oh-my-zsh" ];
|
|
}) omz-plugins;
|
|
};
|
|
initExtra = ''
|
|
eval $(${pkgs.thefuck}/bin/thefuck --alias)
|
|
[ -d ~/.npm-global ] || mkdir ~/.npm-global
|
|
${pkgs.nodejs}/bin/npm config set prefix '~/.npm-global'
|
|
export PATH=~/.npm-global/bin:$PATH
|
|
'';
|
|
};
|
|
}
|