feat: add zoxide integration with fish

This commit is contained in:
Zhongheng Liu 2024-08-11 20:27:55 +08:00
commit 5fbc081c46
No known key found for this signature in database
3 changed files with 13 additions and 3 deletions

View file

@ -10,6 +10,7 @@ in
imports = [ imports = [
./zsh.nix ./zsh.nix
./fish.nix ./fish.nix
./zoxide.nix
./direnv.nix ./direnv.nix
./starship ./starship
]; ];

View file

@ -14,9 +14,6 @@ in
programs.fish = { programs.fish = {
enable = true; enable = true;
shellAliases = import ./aliases {inherit pkgs;}; shellAliases = import ./aliases {inherit pkgs;};
interactiveShellInit = ''
${pkgs.zoxide}/bin/zoxide init fish | source
'';
plugins = [ plugins = [
{ {
name = "z"; name = "z";

View file

@ -0,0 +1,12 @@
{
pkgs,
config,
lib,
...
}: {
programs.zoxide = {
enable = true;
enableZshIntegration = config.myShells.zsh.enable;
enableFishIntegration = config.myShells.fish.enable;
};
}