zsh fixes

This commit is contained in:
Rouven Seifert 2023-04-21 20:13:57 +02:00
parent 1737739b73
commit bfd108d5a7
Signed by: rouven.seifert
GPG key ID: B95E8FE6B11C4D09
2 changed files with 7 additions and 3 deletions

View file

@ -1,6 +1,11 @@
{ pkgs, ... }:
{
programs.command-not-found.enable = false;
environment.systemPackages = with pkgs; [
fzf
bat
exa
];
users.defaultUserShell = pkgs.zsh;
programs.zsh = {
enable = true;
@ -10,6 +15,7 @@
l = "ls -l";
ll = "ls -la";
la = "ls -a";
less = "bat";
switch = "sudo nixos-rebuild switch && cat ${../images/another-cat-2.sixel}";
update = "cd /etc/nixos && nix flake update && cat ${../images/another-cat.sixel}";
garbage = "sudo nix-collect-garbage -d && cat ${../images/cat-garbage.sixel}";
@ -28,7 +34,7 @@
theme = "agnoster";
};
shellInit =
interactiveShellInit =
''
source ${pkgs.zsh-fzf-tab}/share/fzf-tab/fzf-tab.plugin.zsh

View file

@ -56,8 +56,6 @@
trash-cli # better rm
ripgrep # better grep
exa # ls but with icons
bat # better less
duf # better df
gnumake
gdb