Browse Source

hmgr: zsh added

dev_01_initial
Heiko Blobner 2 years ago
parent
commit
4cd100ec1f
  1. 36
      home-manager/modules/cli/zsh.nix
  2. 2
      home-manager/pfke_at_errol.nix

36
home-manager/modules/cli/zsh.nix

@ -0,0 +1,36 @@
{ config, pkgs, ... }:
{
programs.zsh = {
enable = true;
enableAutosuggestion = true;
history= rec {
share = true;
extended = true;
save = 100000000; size = save;
};
shellAliases = {
"..." = "cd";
sl = "exa";
ls = "exa";
l = "exa -l";
la = "exa -la";
rs = "rsync -a --info=progress2 ";
};
pathSetup = ''
export PATH="${prefixEnvPath "PATH" [
"$HOME/.nix-profile/bin"
"/nix/var/nix/profiles/default/bin"
]}";
export MANPATH="$HOME/.nix-profile/share/man:$(manpath 2>/dev/null)";
typeset -U PATH path
'';
initExtra = ''
# Write out history line-by-line, rather than on shell session exit
setopt INC_APPEND_HISTORY
'';
};
}

2
home-manager/pfke_at_errol.nix

@ -7,7 +7,7 @@ let
in { in {
imports = [ imports = [
./modules/cli/bat.nix ./modules/cli/bat.nix
./modules/cli/fish.nix ./modules/cli/zsh.nix
./modules/keychain.nix ./modules/keychain.nix
./modules/cli/starship.nix ./modules/cli/starship.nix
]; ];

Loading…
Cancel
Save