Skip to content

Commit

Permalink
Changed default search engine for firefox
Browse files Browse the repository at this point in the history
Updated zsh config
  • Loading branch information
jwyuen committed Aug 16, 2024
1 parent 03cbc05 commit b217a30
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion nix-config/home/firefox.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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" ];
Expand Down
16 changes: 12 additions & 4 deletions nix-config/home/zsh.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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=";
};
}
];
Expand All @@ -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 `>`
Expand All @@ -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;
Expand Down

0 comments on commit b217a30

Please sign in to comment.