screeps and home-manager.sharedModules
This commit is contained in:
parent
a03344046b
commit
f770305273
6 changed files with 120 additions and 81 deletions
nixos/components/terminal
|
@ -8,19 +8,44 @@ with lib;
|
|||
|
||||
config = mkIf (config.components.terminal.zsh.enable) {
|
||||
|
||||
home-manager.users =
|
||||
let
|
||||
zshConfig = {
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
defaultKeymap = "viins";
|
||||
};
|
||||
};
|
||||
in
|
||||
home-manager.sharedModules = [
|
||||
{
|
||||
mainUser = zshConfig;
|
||||
root = zshConfig;
|
||||
};
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
defaultKeymap = "viins";
|
||||
};
|
||||
|
||||
# a better cat
|
||||
programs.bat = {
|
||||
enable = true;
|
||||
config.theme = "gruvbox-light";
|
||||
};
|
||||
home.shellAliases.cat = "${pkgs.bat}/bin/bat";
|
||||
|
||||
# a better ls
|
||||
programs.exa = {
|
||||
enable = true;
|
||||
enableAliases = true;
|
||||
};
|
||||
home.shellAliases.llt = "${pkgs.exa}/bin/exa -a --tree";
|
||||
|
||||
# use z instead of cd
|
||||
# use zi to fuzzy search through all registered directories
|
||||
programs.zoxide = {
|
||||
enable = true;
|
||||
enableZshIntegration = true;
|
||||
};
|
||||
|
||||
# provide better `Ctrl+r` command in terminal
|
||||
programs.mcfly = {
|
||||
enable = true;
|
||||
keyScheme = "vim";
|
||||
fuzzySearchFactor = 3;
|
||||
enableZshIntegration = true;
|
||||
enableBashIntegration = true;
|
||||
};
|
||||
}
|
||||
];
|
||||
|
||||
programs.zsh = {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue