2019-05-09 18:28:40 +02:00
|
|
|
{ config, lib, ... }:
|
2019-02-26 13:44:40 +01:00
|
|
|
|
2019-03-20 02:57:59 +01:00
|
|
|
with lib;
|
|
|
|
|
|
|
|
mkIf (elem "zsh" config.machine.conffiles) {
|
2019-02-26 13:44:40 +01:00
|
|
|
programs.zsh = {
|
|
|
|
enable = true;
|
|
|
|
autosuggestions.enable = true;
|
|
|
|
syntaxHighlighting.enable = true;
|
2020-05-26 16:30:51 +02:00
|
|
|
shellAliases = {
|
|
|
|
cat = ''bat --paging=never --theme="Solarized (dark)"'';
|
|
|
|
less = ''bat --paging=always --style=changes --color=always --theme="Solarized (dark)"'';
|
|
|
|
ls = "exa";
|
|
|
|
l = "exa -abgHhl@ --git --color=always --group-directories-first";
|
|
|
|
tree = "exa --tree --color=always";
|
|
|
|
};
|
|
|
|
shellInit = ''
|
|
|
|
function ll() { exa -abgHhl@ --git --color=always --group-directories-first $@ | bat --paging=always --style=changes --color=always --theme="Solarized (dark)" }
|
|
|
|
function lln() { exa -abgHhl@ --git --color=always --group-directories-first $@ | bat --paging=always --style=changes --color=always --theme="Solarized (dark)" -n}
|
|
|
|
'';
|
2019-02-26 13:44:40 +01:00
|
|
|
ohMyZsh = {
|
|
|
|
enable = true;
|
2019-03-26 22:45:54 +01:00
|
|
|
plugins = [ "cabal" "docker" "gitfast" "python" "pip" "sudo" "systemd" "man" ];
|
2019-02-26 13:44:40 +01:00
|
|
|
theme = "gentoo";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|