2023-12-23 22:46:58 +01:00
|
|
|
{ lib, pkgs, ... }:
|
2023-12-23 00:11:26 +01:00
|
|
|
{
|
|
|
|
|
|
|
|
programs.zsh = {
|
|
|
|
enable = true;
|
2023-12-23 22:46:58 +01:00
|
|
|
defaultKeymap = lib.mkDefault "viins";
|
2023-12-23 00:11:26 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
programs.bash = {
|
|
|
|
enable = true;
|
|
|
|
bashrcExtra = ''
|
|
|
|
set -o vi
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
# a better cat
|
|
|
|
programs.bat = {
|
|
|
|
enable = true;
|
|
|
|
config.theme = "gruvbox-light";
|
|
|
|
};
|
|
|
|
|
|
|
|
home.shellAliases.cat = "${pkgs.bat}/bin/bat --theme='gruvbox-light'";
|
|
|
|
home.shellAliases.llt = "${pkgs.eza}/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;
|
|
|
|
#};
|
|
|
|
|
|
|
|
# provide better `Ctrl+r` command in terminal
|
|
|
|
programs.atuin = {
|
|
|
|
enable = true;
|
|
|
|
enableBashIntegration = true;
|
|
|
|
enableZshIntegration = true;
|
|
|
|
package = pkgs.atuin.overrideAttrs (_old: {
|
|
|
|
# as cursed as doing mitigations=off in the kernel command line
|
|
|
|
patches = [ ./0001-make-atuin-on-zfs-fast-again.patch ];
|
|
|
|
});
|
|
|
|
settings = {
|
|
|
|
auto_sync = true;
|
|
|
|
sync_frequency = "5m";
|
2023-12-23 22:46:58 +01:00
|
|
|
sync_address = "http://chungus.private:8888";
|
2023-12-29 17:02:21 +01:00
|
|
|
search_mode = "skim";
|
2023-12-23 00:11:26 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|