mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2025-01-19 01:21:39 +01:00
zsh fixes
This commit is contained in:
parent
1737739b73
commit
bfd108d5a7
2 changed files with 7 additions and 3 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue