From b217a30e2786ee5c8b590392a7f2fe597cc0717b Mon Sep 17 00:00:00 2001 From: jwy Date: Fri, 16 Aug 2024 15:34:07 -0400 Subject: [PATCH] Changed default search engine for firefox Updated zsh config --- nix-config/home/firefox.nix | 2 +- nix-config/home/zsh.nix | 16 ++++++++++++---- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/nix-config/home/firefox.nix b/nix-config/home/firefox.nix index 4a31a57a6..a0c671889 100644 --- a/nix-config/home/firefox.nix +++ b/nix-config/home/firefox.nix @@ -49,7 +49,7 @@ definedAliases = [ "@nw" ]; }; "Searx" = { - urls = [{ template = "https://searxng.online/?q={searchTerms}"; }]; + urls = [{ template = "https://searx.work/?q={searchTerms}"; }]; iconUpdateURL = "https://nixos.wiki/favicon.png"; updateInterval = 24 * 60 * 60 * 1000; # every day definedAliases = [ "@searx" ]; diff --git a/nix-config/home/zsh.nix b/nix-config/home/zsh.nix index d6b636e9d..fdf047b78 100644 --- a/nix-config/home/zsh.nix +++ b/nix-config/home/zsh.nix @@ -13,10 +13,8 @@ lib.mkIf (theShell == "zsh") { src = pkgs.fetchFromGitHub { owner = "Aloxaf"; repo = "fzf-tab"; - rev = "bf3ef5588af6d3bf7cc60f2ad2c1c95bca216241"; - #sha256 = "G2SWncbLNaclSYUz7VyfWu+OB8TYJYm4NYkM"; - #sha256 = lib.fakeSha256; - sha256 = "0/YOL1/G2SWncbLNaclSYUz7VyfWu+OB8TYJYm4NYkM="; + rev = "14e16f0d36ae9938e28b2f6efdb7344cd527a1a6"; + sha256 = "o8hgnTl84nI7jMVfA5jEcDXkMFFlnxKbRva+l/Fx4jI="; }; } ]; @@ -34,6 +32,8 @@ lib.mkIf (theShell == "zsh") { zstyle ':completion:*:descriptions' format '[%d]' # force zsh not to show completion menu, which allows fzf-tab to capture the unambiguous prefix zstyle ':completion:*' menu no + # case insensitive matching + zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}' # preview directory's content with eza when completing cd zstyle ':fzf-tab:complete:cd:*' fzf-preview 'eza -1 --color=always $realpath' # switch group using `<` and `>` @@ -60,7 +60,15 @@ lib.mkIf (theShell == "zsh") { initExtraFirst = '' HISTFILE=~/.histfile HISTSIZE=1000 + HISTDUP=erase SAVEHIST=1000 + setopt appendhistory + setopt sharehistory + setopt hist_ignore_space + setopt hist_ignore_all_dups + setopt hist_save_no_dups + setopt hist_ignore_dups + setopt hist_find_no_dups setopt autocd nomatch unsetopt beep extendedglob notify autoload -Uz compinit;