-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fish error when programs.fish.vendor.config.enable = true
#261777
Comments
I encountered the same problem after updating packages with: cd nix-config
nix flake update
darwin-rebuild switch --flake . But starting new shells don't have the problem, so I restarted all existing shells. nix-info:
|
I think this was addressed here yesterday: #261778 |
@magnetophon Sorry I was wrong, the error still happens, but only in git projects, so I wasn't noticed the problem. I installed |
I have upgraded from 23.05 to unstable and now I have the same problem as magnetophon.
Parts of
|
Using
EDIT: Fixed by deleting |
You can always apply the patch from the PR to fzf in your local config while we wait for hydra: (@pbek) pkgs.fzf.overrideAttrs(_: prev: {
patches = (prev.patches or [ ]) ++ [
(pkgs.fetchpatch {
name = "fzf-fix-fish-key-bindings.patch";
url = "https://github.com/NixOS/nixpkgs/pull/261778.diff";
hash = "sha256-DSdB9VxNuCS1j0hWkzUVM1jXLWAIcVWnMriPgs2YDJs=";
})
];
}) |
Thank you, @r-vdp! Have to play with that more, the config caused some errors for me... |
@pbek oh sorry, my fault, the PR patch would need to be applied to nixpkgs as a whole, not the fzf source, you can do it like this though: pkgs.fzf.overrideAttrs (final: prev: {
postInstall = (prev.postInstall or "") + ''
cat << EOF > $out/share/fish/vendor_conf.d/load-fzf-key-bindings.fish
status is-interactive; or exit 0
fzf_key_bindings
EOF
'';
}); |
Didn't work either 😅 |
Hmm, it should, we can discuss in the support channel on matrix or such if you want, that's probably better than here |
@r-vdp Thanks, it works. @pbek Do you use home-manager? If so, it works like: { pkgs, ... }:
{
programs.fzf = {
enable = true;
package = pkgs.fzf.overrideAttrs (final: prev: {
postInstall = (prev.postInstall or "") + ''
cat << EOF > $out/share/fish/vendor_conf.d/load-fzf-key-bindings.fish
status is-interactive; or exit 0
fzf_key_bindings
EOF
'';
});
};
} |
In reply to my previous message, I fixed it by deleting |
It's fixed for me now in nixpkgs unstable! 👍🏻 |
Fixed in #261778 |
Describe the bug
When
programs.fish.vendor.config.enable = true
, I get the following error at every fish prompt:When I set it to false, the error goes away.
Steps To Reproduce
Steps to reproduce the behavior:
programs.fish.vendor.config.enable = true
in your config. (this is the default.Expected behavior
No error.
Notify maintainers
@cole-h @Winter @srapenne
Metadata
The text was updated successfully, but these errors were encountered: