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 = [
|
imports = [
|
||||||
./zsh.nix
|
./zsh.nix
|
||||||
./fish.nix
|
./fish.nix
|
||||||
|
./zoxide.nix
|
||||||
./direnv.nix
|
./direnv.nix
|
||||||
./starship
|
./starship
|
||||||
];
|
];
|
||||||
|
|
|
@ -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";
|
||||||
|
|
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