Skip to content

A way to avoid zi alias? #312

Answered by vladdoster
comfortablynick asked this question in Q&A
Discussion options

You must be logged in to vote

Ah thanks for reporting this edge case, but you can (pretty sure 😆) overcome this in a few ways.

However, to gain a bit more context, can you share how you currently load Zoxide? I don't use it personally.


Here are three possible solutions that I'd suggest.

1.

Use z instead of zi, no changes needed to how you load Zoxide.

2.

When calling zoxide init, the following flag is available:

--cmd

Changes the prefix of the z and zi commands.

E.g.,

--cmd j

would change the commands to (j, ji)

--cmd cd

would replace the cd command

So you'd just need to choose different shortcut.

3.

I haven't tested this, but 99% sure adding the following ice would work given how zinit loads plugins.

atload'unalias zi'

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
5 replies
@vladdoster
Comment options

@comfortablynick
Comment options

@vladdoster
Comment options

@strombringer
Comment options

@mauromotion
Comment options

Answer selected by vladdoster
Comment options

You must be logged in to vote
1 reply
@vladdoster
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
5 participants