You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I may be missing something, but so far I haven't found docs for this, or other discussion of this concept.
For me, the motivating use case is a monorepo - and I have multiple clones of it. For others, the use case could be anything where there's a notion of a self-contained "project".
When I'm "in or below" a given directory root, all my z commands would be interpreted as being scoped to that project directory. I frequently want to jump around within that directory, but if I wanted to go "elsewhere", I could use cd to accomplish that (or perhaps zoxide could provide an escape sequence).
I often have many shells open in parallel, and global "frecency" doesn't help me very much, especially since, as I mentioned, I often have multiple clones of the same project, and so a name could refer to any of them, and I might have just switched mental contexts from one project/clone to the other, but zoxide may occasionally assume that I want to go to a directory within the other project.
For my purposes, either an empty dotfile (e.g. .zoxide-root) in the root directory of the 'project' or an environment variable (e.g. ZOXIDE_ROOT=1 - I would set this automagically with direnv, but there might be other ways to do this) would be perfectly acceptable solutions.
The text was updated successfully, but these errors were encountered:
I may be missing something, but so far I haven't found docs for this, or other discussion of this concept.
For me, the motivating use case is a monorepo - and I have multiple clones of it. For others, the use case could be anything where there's a notion of a self-contained "project".
When I'm "in or below" a given directory root, all my
z
commands would be interpreted as being scoped to that project directory. I frequently want to jump around within that directory, but if I wanted to go "elsewhere", I could usecd
to accomplish that (or perhapszoxide
could provide an escape sequence).I often have many shells open in parallel, and global "frecency" doesn't help me very much, especially since, as I mentioned, I often have multiple clones of the same project, and so a name could refer to any of them, and I might have just switched mental contexts from one project/clone to the other, but
zoxide
may occasionally assume that I want to go to a directory within the other project.For my purposes, either an empty dotfile (e.g.
.zoxide-root
) in the root directory of the 'project' or an environment variable (e.g.ZOXIDE_ROOT=1
- I would set this automagically withdirenv
, but there might be other ways to do this) would be perfectly acceptable solutions.The text was updated successfully, but these errors were encountered: