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

View file

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