summaryrefslogtreecommitdiff
path: root/nixos/modules/system/users
diff options
context:
space:
mode:
authorseraphim <18ycm9tx@anonaddy.me>2026-08-08 17:21:01 +0700
committerseraphim <18ycm9tx@anonaddy.me>2026-08-08 17:21:01 +0700
commit1e3def5c7832572877a0f41432bab5655ea4f6bf (patch)
treec2041405fd4dc88e70d389c0e705592857dd5598 /nixos/modules/system/users
parente3f90f0362007e01a11addc1cd049c44bf00a70e (diff)
upd
Diffstat (limited to 'nixos/modules/system/users')
-rw-r--r--nixos/modules/system/users/default.nix25
1 files changed, 22 insertions, 3 deletions
diff --git a/nixos/modules/system/users/default.nix b/nixos/modules/system/users/default.nix
index d795a64..d9ac254 100644
--- a/nixos/modules/system/users/default.nix
+++ b/nixos/modules/system/users/default.nix
@@ -24,7 +24,13 @@
];
};
- # ZSH + completion, oh-my-zsh, autosuggestions, and fzf key bindings.
+ # fzf -- proper key bindings + completion for zsh.
+ programs.fzf = {
+ fuzzyCompletion = true;
+ keybindings = true;
+ };
+
+ # ZSH + completion, oh-my-zsh, autosuggestions.
programs.zsh = {
enable = true;
enableCompletion = true;
@@ -35,8 +41,21 @@
strategy = [ "history" "completion" ];
};
interactiveShellInit = ''
- source ${pkgs.fzf}/share/fzf/key-bindings.zsh
- source ${pkgs.fzf}/share/fzf/completion.zsh
+ # Fish-style full-screen Ctrl+R history search.
+ export FZF_CTRL_R_OPTS="
+ --layout=reverse
+ --scheme=history
+ --height=100%
+ --border=sharp
+ --border-label=' Ctrl+R '
+ --highlight-line
+ --pointer=→
+ --info=inline-right
+ --header-first
+ --header='enter: accept · ctrl-/ : toggle preview'
+ --preview='echo {}' --preview-window=down:3:hidden:wrap
+ --bind=ctrl-/:toggle-preview
+ "
'';
shellAliases = {
ls = "eza -al --icons=auto";