1
0
mirror of https://github.com/skywind3000/z.lua synced 2026-03-12 02:39:48 +00:00

Merge pull request #223 from fabiob/patch-1

Adds NixOS instructions to README.md
This commit is contained in:
Linwei
2025-08-01 14:42:55 +08:00
committed by GitHub

View File

@@ -78,6 +78,12 @@ z -b foo bar # replace foo with bar in cwd and cd there
eval "$(lua /path/to/z.lua --init bash enhanced once fzf)"
NixOS users using home-manager can add this to their user profile:
programs.z-lua.enable = true;
programs.z-lua.enableBashIntegration = true;
programs.z-lua.options = [ "enhanced" "once" "fzf" ]; # modify as needed
**NOTE**: For wsl-1 users, `lua-filesystem` must be installed:
sudo apt-get install lua-filesystem
@@ -92,6 +98,12 @@ z -b foo bar # replace foo with bar in cwd and cd there
Options like "enhanced", "once" and "fzf" can be used after `--init` too. It can also be initialized from "skywind3000/z.lua" with your zsh plugin managers (antigen / oh-my-zsh).
NixOS users using home-manager can add this to their user profile:
programs.z-lua.enable = true;
programs.z-lua.enableZshIntegration = true;
programs.z-lua.options = [ "enhanced" "once" "fzf" ]; # modify as needed
**NOTE**: for wsl-1 users, `lua-filesystem` must be installed.
- Posix Shells:
@@ -118,6 +130,12 @@ z -b foo bar # replace foo with bar in cwd and cd there
into the same file.
NixOS users using home-manager can add this to their user profile:
programs.z-lua.enable = true;
programs.z-lua.enableFishIntegration = true;
programs.z-lua.options = [ "enhanced" "once" "fzf" ]; # modify as needed
- Nushell
Put something like this in your `env.nu`: