add sane zsh config
This commit is contained in:
parent
da7cbfb98c
commit
32b74fefd1
|
@ -44,6 +44,7 @@
|
|||
./modules/mautrix-telegram.nix
|
||||
./modules/sogo.nix
|
||||
./modules/vaultwarden.nix
|
||||
./modules/zsh.nix
|
||||
./modules/course-management.nix
|
||||
{
|
||||
fsr.enable_office_bloat = false;
|
||||
|
|
36
modules/zsh.nix
Normal file
36
modules/zsh.nix
Normal file
|
@ -0,0 +1,36 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
# fzf
|
||||
bat
|
||||
duf
|
||||
];
|
||||
users.defaultUserShell = pkgs.zsh;
|
||||
programs.fzf = {
|
||||
fuzzyCompletion = true;
|
||||
keybindings = true;
|
||||
};
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
shellAliases = {
|
||||
l = "ls -l";
|
||||
ll = "ls -la";
|
||||
la = "ls -a";
|
||||
less = "bat";
|
||||
};
|
||||
histSize = 100000;
|
||||
histFile = "~/.local/share/zsh/history";
|
||||
autosuggestions = {
|
||||
enable = true;
|
||||
highlightStyle = "fg=#00bbbb,bold";
|
||||
};
|
||||
|
||||
shellInit =
|
||||
''
|
||||
source ${pkgs.zsh-fzf-tab}/share/fzf-tab/fzf-tab.plugin.zsh
|
||||
|
||||
zsh-newuser-install () {}
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in a new issue