feat: add zoxide integration with fish
This commit is contained in:
parent
be06b26ff9
commit
5fbc081c46
3 changed files with 13 additions and 3 deletions
|
@ -10,6 +10,7 @@ in
|
|||
imports = [
|
||||
./zsh.nix
|
||||
./fish.nix
|
||||
./zoxide.nix
|
||||
./direnv.nix
|
||||
./starship
|
||||
];
|
||||
|
|
|
@ -14,9 +14,6 @@ in
|
|||
programs.fish = {
|
||||
enable = true;
|
||||
shellAliases = import ./aliases {inherit pkgs;};
|
||||
interactiveShellInit = ''
|
||||
${pkgs.zoxide}/bin/zoxide init fish | source
|
||||
'';
|
||||
plugins = [
|
||||
{
|
||||
name = "z";
|
||||
|
|
12
home-manager/stvnliu/shells/zoxide.nix
Normal file
12
home-manager/stvnliu/shells/zoxide.nix
Normal file
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
pkgs,
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
programs.zoxide = {
|
||||
enable = true;
|
||||
enableZshIntegration = config.myShells.zsh.enable;
|
||||
enableFishIntegration = config.myShells.fish.enable;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue