Add a couple of small utilities and wire them up.

This commit is contained in:
Kevin Baensch 2020-05-26 16:30:51 +02:00
parent 51ecdd42c2
commit aa292f3a42
Signed by: derped
GPG key ID: C0F1D326C7626543
3 changed files with 17 additions and 4 deletions

View file

@ -7,6 +7,17 @@ mkIf (elem "zsh" config.machine.conffiles) {
enable = true;
autosuggestions.enable = true;
syntaxHighlighting.enable = true;
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}
'';
ohMyZsh = {
enable = true;
plugins = [ "cabal" "docker" "gitfast" "python" "pip" "sudo" "systemd" "man" ];
@ -14,4 +25,3 @@ mkIf (elem "zsh" config.machine.conffiles) {
};
};
}