skywind3000 / skywind3000/z.lua

How to disable z.lua inside `$(cd "$(dirname "$0")" && pwd)`

Open
#232 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Lua
Stars
3.1k
Forks
148
PR merge metrics
No merged PRs in 30d

Description

I have a $(cd "$(dirname "$0")" && pwd) statement in my .zshrc, but z.lua adds the dirname every time I log in. How can I temporarily disable z.lua in these statements?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the behavior from the .zshrc command substitution $(cd "$(dirname "$0")" && pwd) and inspect how z.lua handles directory changes in zsh. Done means identifying a supported temporary-disable mechanism or documenting that the statement no longer causes z.lua to record the dirname while ordinary navigation still works.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua, zsh
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.