Skip to content

Commit

Permalink
feat(shell): add zoxide integration
Browse files Browse the repository at this point in the history
  • Loading branch information
zakuciael committed May 31, 2024
1 parent df06ae5 commit 63a83a8
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@
"thalheim",
"togglable",
"usbhid",
"xhci"
"xhci",
"zoxide"
],
"conventionalCommits.scopes": [
"vscode",
Expand Down Expand Up @@ -78,7 +79,8 @@
"desktop",
"bootloader",
"fish",
"git"
"git",
"shell"
],
"todohighlight.isEnable": true,
"todohighlight.isCaseSensitive": true,
Expand Down
1 change: 1 addition & 0 deletions configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@
nix.enable = true;
direnv.enable = true;
starship.enable = true;
zoxide.enable = true;
fish = {
enable = true;
direnv.enable = true;
Expand Down
23 changes: 23 additions & 0 deletions modules/shell/zoxide.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
config,
lib,
username,
...
}:
with lib;
with lib.my; let
cfg = config.modules.shell.zoxide;
in {
options.modules.shell.zoxide = {
enable = mkEnableOption "zoxide shell integration";
};

config = mkIf (cfg.enable) {
home-manager.users.${username} = {
programs.zoxide = {
enable = true;
options = ["--cmd cd"];
};
};
};
}

0 comments on commit 63a83a8

Please sign in to comment.