substring
This commit is contained in:
parent
8943689c68
commit
9d400eec55
|
@ -1,30 +1,46 @@
|
||||||
{ pkgs, ... }: {
|
{ pkgs, ... }: {
|
||||||
programs.zsh = {
|
programs.zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
enableAutosuggestions = true;
|
||||||
syntaxHighlighting.enable = true;
|
syntaxHighlighting.enable = true;
|
||||||
enableCompletion = true;
|
enableCompletion = true;
|
||||||
# autosuggestion.enable = true;
|
|
||||||
historySubstringSearch.enable = true;
|
|
||||||
dotDir = ".config/zsh";
|
dotDir = ".config/zsh";
|
||||||
initExtra = "PROMPT='%F{green}%~%f '";
|
|
||||||
|
|
||||||
shellAliases = {
|
shellAliases = {
|
||||||
v = "hx";
|
|
||||||
cat = "bat";
|
|
||||||
cn = "cd ~/nix";
|
cn = "cd ~/nix";
|
||||||
ls = "${pkgs.eza}/bin/eza --icons -a --group-directories-first";
|
ls = "${pkgs.eza}/bin/eza --icons -a --group-directories-first";
|
||||||
|
v = "hx";
|
||||||
|
cat = "bat";
|
||||||
pu = "sh ~/nix/modules/apps/home/zsh/scripts/push.sh";
|
pu = "sh ~/nix/modules/apps/home/zsh/scripts/push.sh";
|
||||||
ip = "sh ~/nix/modules/apps/home/zsh/scripts/ip.sh";
|
ip = "sh ~/nix/modules/apps/home/zsh/scripts/ip.sh";
|
||||||
rb = "sh ~/nix/modules/apps/home/zsh/scripts/rebuild.sh";
|
rb = "sh ~/nix/modules/apps/home/zsh/scripts/rebuild.sh";
|
||||||
fr = "sudo systemctl reboot --firmware";
|
fr = "sudo systemctl reboot --firmware";
|
||||||
ser = "ssh root@joygnu.org";
|
|
||||||
up = "sudo nix flake update ~/nix";
|
up = "sudo nix flake update ~/nix";
|
||||||
del = "sudo nix-collect-garbage -d";
|
del = "sudo nix-collect-garbage -d";
|
||||||
dn = "dotnet new console";
|
dn = "dotnet new console";
|
||||||
dr = "dotnet run";
|
dr = "dotnet run";
|
||||||
|
backup = "tar -czvf ~/config_backup.tar.gz ~/.config/zsh";
|
||||||
};
|
};
|
||||||
|
|
||||||
history.size = 1000000;
|
history.size = 1000000;
|
||||||
history.path = ".config/zsh/history";
|
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";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue