From 4fbe99b612df30a7da3034115a1d9b3719849938 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Thu, 18 Jan 2018 03:20:01 +0100 Subject: heavily strip down zsh --- custom/zsh.nix | 40 ++-------------------------------------- 1 file changed, 2 insertions(+), 38 deletions(-) diff --git a/custom/zsh.nix b/custom/zsh.nix index 2f27db6a..de399a11 100644 --- a/custom/zsh.nix +++ b/custom/zsh.nix @@ -1,48 +1,12 @@ { config, pkgs, ... }: -let - antigen = pkgs.callPackage (import ./antigen.nix) {}; -in rec { + +rec { programs.zsh.enable = true; - programs.zsh.shellAliases = { - less = "less -R"; - ls = "ls --color=auto"; - l = "ls -lhAF"; - ll = "l --color=always L"; - ".." = "cd .."; - "nix-shell" = "nix-shell --command $(getent passwd $LOGNAME | cut -d: -f7)"; - }; programs.zsh.interactiveShellInit = '' setopt clobber setopt nobeep - - alias -g L='|less' - alias -g S='&> /dev/null' - alias -g G='|grep --color=auto' - alias -g B='&> /dev/null &!' - - cl() { cd; clear } ''; programs.zsh.promptInit = '' bindkey -e - source ${antigen}/antigen.zsh - - antigen use oh-my-zsh - antigen bundles <