nixpkgs update, use global fzf

This commit is contained in:
Rouven Seifert 2023-05-20 10:37:41 +02:00
parent 3df08b721e
commit a3e8fba7c0
Signed by: rouven.seifert
GPG key ID: B95E8FE6B11C4D09
6 changed files with 20 additions and 34 deletions

View file

@ -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}