substring

This commit is contained in:
joy 2024-10-05 00:27:30 +02:00
parent 8943689c68
commit 9d400eec55

View file

@ -1,30 +1,46 @@
{pkgs, ...}: {
{ pkgs, ... }: {
programs.zsh = {
enable = true;
enableAutosuggestions = true;
syntaxHighlighting.enable = true;
enableCompletion = true;
# autosuggestion.enable = true;
historySubstringSearch.enable = true;
dotDir = ".config/zsh";
initExtra = "PROMPT='%F{green}%~%f '";
shellAliases = {
v = "hx";
cat = "bat";
cn = "cd ~/nix";
ls = "${pkgs.eza}/bin/eza --icons -a --group-directories-first";
v = "hx";
cat = "bat";
pu = "sh ~/nix/modules/apps/home/zsh/scripts/push.sh";
ip = "sh ~/nix/modules/apps/home/zsh/scripts/ip.sh";
rb = "sh ~/nix/modules/apps/home/zsh/scripts/rebuild.sh";
fr = "sudo systemctl reboot --firmware";
ser = "ssh root@joygnu.org";
up = "sudo nix flake update ~/nix";
del = "sudo nix-collect-garbage -d";
dn = "dotnet new console";
dr = "dotnet run";
backup = "tar -czvf ~/config_backup.tar.gz ~/.config/zsh";
};
history.size = 1000000;
history.path = ".config/zsh/history";
# plugins = [
# {
# name = "zsh-autosuggestions";
# src = pkgs.fetchFromGitHub {
# owner = "zsh-users";
# repo = "zsh-autosuggestions";
# rev = "v0.4.0"; # Version
# sha256 = "sha256-bBqJCkhygrXqAfWBsvUNpXu9IrwLyn/ypmTRKSVP0Xw="; # Fetched hash
# };
# }
# ];
# };
oh-my-zsh = {
enable = true;
plugins = [ "git" "history-substring-search" ];
theme = "simple";
};
};
}