mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2025-04-26 00:18:28 +02:00
nixpkgs update, use global fzf
This commit is contained in:
parent
3df08b721e
commit
a3e8fba7c0
6 changed files with 20 additions and 34 deletions
|
@ -2,12 +2,16 @@
|
|||
{
|
||||
programs.command-not-found.enable = false;
|
||||
environment.systemPackages = with pkgs; [
|
||||
fzf
|
||||
# fzf
|
||||
bat
|
||||
exa
|
||||
trash-cli
|
||||
];
|
||||
users.defaultUserShell = pkgs.zsh;
|
||||
programs.fzf = {
|
||||
fuzzyCompletion = true;
|
||||
keybindings = true;
|
||||
};
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
shellAliases = {
|
||||
|
@ -62,12 +66,8 @@
|
|||
}
|
||||
|
||||
'';
|
||||
|
||||
# Hacky way to bind Ctrl+R to fzf. Otherwise it will be overridden
|
||||
promptInit =
|
||||
''
|
||||
source ${pkgs.fzf}/share/fzf/completion.zsh
|
||||
source ${pkgs.fzf}/share/fzf/key-bindings.zsh
|
||||
if [[ "$(hostname)" == "thinkpad" ]]
|
||||
then
|
||||
cat ${../images/cat.sixel}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue