From 6a27d9b52cd8bdec7d77b0a18422a793442b0dc5 Mon Sep 17 00:00:00 2001 From: genofire Date: Fri, 15 Oct 2021 19:41:03 +0200 Subject: [PATCH] nixos/default: zsh aliases for color --- nixos/default.nix | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/nixos/default.nix b/nixos/default.nix index b09dc24..746bd4e 100644 --- a/nixos/default.nix +++ b/nixos/default.nix @@ -62,12 +62,19 @@ # zsh users.defaultUserShell = pkgs.zsh; - programs.zsh.enable = true; - programs.zsh.autosuggestions.enable = true; - programs.zsh.syntaxHighlighting.enable = true; - programs.zsh.interactiveShellInit = '' - source ${pkgs.grml-zsh-config}/etc/zsh/zshrc - ''; - programs.zsh.promptInit = ""; + programs.zsh = { + enable = true; + autosuggestions.enable = true; + syntaxHighlighting.enable = true; + interactiveShellInit = '' + source ${pkgs.grml-zsh-config}/etc/zsh/zshrc + ''; + promptInit = ""; + shellAliases = { + ip = "ip --color"; + watch = "watch -c"; + grep = "grep --color=always --exclude-dir=.git"; + }; + }; }