Open vladdoster opened 1 year ago
@pschmitt I've linked all open PRs across zdharma-continuum
that have these changes.
Would be great to share the script you used to rename these, for posterity
@vladdoster is it correctly understood, that all PRs needs to be merged, for not ending up after updating with this output:
zdharma-continuum---zinit-annex-bin-gem-node/z-a-bin-gem-node.plugin.zsh:42: command not found: @zinit-register-annex
My system did get the new function name, but by extending ended up throwing command not found on every new terminal. :)
@mmedum Are you attempting to test these changes? Or are you hitting this issue on main branch?
@vladdoster I'm getting this after the last update:
$ zi update -p 1m35s
[self-update] updating zinit repository
[self-update] fetching latest changes from main branch
2022-12-17 b979847b Merge branch 'refactor/zinit-function-names' into main
2022-12-16 a72fb83f fix: container build & shell make targets | Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-12-16 14b2cda0 fix: container build & shell make targets | Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-12-16 370808dd fix: container build & shell make targets | Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-12-16 47bd74f8 fix: container build & shell make targets | Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-12-16 f8eb967b fix: container build & shell make targets | Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-12-15 3af321e8 fix: container build & shell make targets | Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-12-15 2b460a74 fix: vim modelines & zsdoc pdf rendering | Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-12-16 0e45493e fix: change prefix `~zi::` to `__zi::` | Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-12-15 75bb7354 fix: file modelines | Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-12-15 dd048964 fix: make target docker cmd flags | Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-12-09 c28580c3 refactor: rename zinit functions | Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
With errors for all sbin
functions after starting a new shell:
$ exec zsh
/home/mustaqim/.local/share/zinit/plugins/zdharma-continuum---zinit-annex-bin-gem-node/z-a-bin-gem-node.plugin.zsh:21: command not found: @zinit-register-annex
/home/mustaqim/.local/share/zinit/plugins/zdharma-continuum---zinit-annex-bin-gem-node/z-a-bin-gem-node.plugin.zsh:26: command not found: @zinit-register-annex
/home/mustaqim/.local/share/zinit/plugins/zdharma-continuum---zinit-annex-bin-gem-node/z-a-bin-gem-node.plugin.zsh:32: command not found: @zinit-register-annex
/home/mustaqim/.local/share/zinit/plugins/zdharma-continuum---zinit-annex-bin-gem-node/z-a-bin-gem-node.plugin.zsh:37: command not found: @zinit-register-annex
/home/mustaqim/.local/share/zinit/plugins/zdharma-continuum---zinit-annex-bin-gem-node/z-a-bin-gem-node.plugin.zsh:42: command not found: @zinit-register-annex
ERROR: Unknown subcommand: `sbinstarship` (it should be one of, e.g.: `load`, `snippet`, `update`, `delete`, …, e.g.: `zinit load username/reponame`) or a for-based command body (i.e.: e.g.: `zinit …ice-spec… for …(plugin or snippet) ID-1 ID-2 ⋯⋯…`). See `help` for a more detailed usage information and the list of the subcommands.
ERROR: Unknown subcommand: `sbinfpp` (it should be one of, e.g.: `load`, `snippet`, `update`, `delete`, …, e.g.: `zinit load username/reponame`) or a for-based command body (i.e.: e.g.: `zinit …ice-spec… for …(plugin or snippet) ID-1 ID-2 ⋯⋯…`). See `help` for a more detailed usage information and the list of the subcommands.
ERROR: Unknown subcommand: `sbin*->deno` (it should be one of, e.g.: `load`, `snippet`, `update`, `delete`, …, e.g.: `zinit load username/reponame`) or a for-based command body (i.e.: e.g.: `zinit …ice-spec… for …(plugin or snippet) ID-1 ID-2 ⋯⋯…`). See `help` for a more detailed usage information and the list of the subcommands.
ERROR: Unknown subcommand: `sbinbin/heroku` (it should be one of, e.g.: `load`, `snippet`, `update`, `delete`, …, e.g.: `zinit load username/reponame`) or a for-based command body (i.e.: e.g.: `zinit …ice-spec… for …(plugin or snippet) ID-1 ID-2 ⋯⋯…`). See `help` for a more detailed usage information and the list of the subcommands.
ERROR: Unknown subcommand: `sbin*->rust-analyzer` (it should be one of, e.g.: `load`, `snippet`, `update`, `delete`, …, e.g.: `zinit load username/reponame`) or a for-based command body (i.e.: e.g.: `zinit …ice-spec… for …(plugin or snippet) ID-1 ID-2 ⋯⋯…`). See `help` for a more detailed usage information and the list of the subcommands.
ERROR: Unknown subcommand: `sbin*->tree-sitter` (it should be one of, e.g.: `load`, `snippet`, `update`, `delete`, …, e.g.: `zinit load username/reponame`) or a for-based command body (i.e.: e.g.: `zinit …ice-spec… for …(plugin or snippet) ID-1 ID-2 ⋯⋯…`). See `help` for a more detailed usage information and the list of the subcommands.
ERROR: Unknown subcommand: `sbinyt-dlp->yt` (it should be one of, e.g.: `load`, `snippet`, `update`, `delete`, …, e.g.: `zinit load username/reponame`) or a for-based command body (i.e.: e.g.: `zinit …ice-spec… for …(plugin or snippet) ID-1 ID-2 ⋯⋯…`). See `help` for a more detailed usage information and the list of the subcommands.
@mmedum & @mustaqimM
This was an accident. I accidentally merged this thinking I was on my fork. I have reverted the commit.
To fix, run:
zi delete --all --yes
zi self-update
exec zsh -l
@mmedum & @mustaqimM
This was an accident. I accidentally merged this thinking I was on my fork. I have reverted the commit.
To fix, run:
zi delete --all --yes zi self-update exec zsh -l
Great! Thanks for the quick help 😃
Hi guys, what if I still have that problem after fresh installation?
❯ source .zshrc
/home/user/.zi/plugins/zdharma-continuum---zinit-annex-as-monitor/z-a-readurl.plugin.zsh:25: command not found: @zinit-register-annex
/home/user/.zi/plugins/zdharma-continuum---zinit-annex-bin-gem-node/z-a-bin-gem-node.plugin.zsh:21: command not found: @zinit-register-annex
/home/user/.zi/plugins/zdharma-continuum---zinit-annex-bin-gem-node/z-a-bin-gem-node.plugin.zsh:26: command not found: @zinit-register-annex
/home/user/.zi/plugins/zdharma-continuum---zinit-annex-bin-gem-node/z-a-bin-gem-node.plugin.zsh:32: command not found: @zinit-register-annex
/home/user/.zi/plugins/zdharma-continuum---zinit-annex-bin-gem-node/z-a-bin-gem-node.plugin.zsh:37: command not found: @zinit-register-annex
/home/user/.zi/plugins/zdharma-continuum---zinit-annex-bin-gem-node/z-a-bin-gem-node.plugin.zsh:42: command not found: @zinit-register-annex
/home/user/.zi/plugins/zdharma-continuum---zinit-annex-patch-dl/z-a-patch-dl.plugin.zsh:16: command not found: @zinit-register-annex
/home/user/.zi/plugins/zdharma-continuum---zinit-annex-patch-dl/z-a-patch-dl.plugin.zsh:23: command not found: @zinit-register-annex
/home/user/.zi/plugins/zdharma-continuum---zinit-annex-rust/z-a-rust.plugin.zsh:19: command not found: @zinit-register-annex
/home/user/.zi/plugins/zdharma-continuum---zinit-annex-rust/z-a-rust.plugin.zsh:25: command not found: @zinit-register-annex
/home/user/.zi/plugins/zdharma-continuum---zinit-annex-rust/z-a-rust.plugin.zsh:30: command not found: @zinit-register-annex
/home/user/.zi/plugins/zdharma-continuum---zinit-annex-rust/z-a-rust.plugin.zsh:35: command not found: @zinit-register-annex
and even after delete/self-update..
@marmelin did you get this resolved?
Try:
zinit delete --all --yes
zinit update --reset
exec zsh -l
If that doesn't fix it, you can run:
rm -rf $ZINIT[HOME_DIR]
exec zsh -l
Hi @vladdoster , I noticed that the brew installation of zinit does not have correct binary in place to use - so I uninstalled it and installed via normal zinit curl command.
Then updated all again zinit self-update
.. now it works :heavy_check_mark: .
Thx :+1:
I was starting to open a new issue, but this seems to be the same topic, albeit with a slightly different naming issue: I would like to rename all functions that begin with a dash, because they pollute any completions for prefix commands, such as whence
, which
, watch
, doas
, etc.
@AndydeCleyre,
This can be resolved with zstyles
:
zstyle ':completion:*:functions' ignored-patterns '([-])*'
@vladdoster
If the feature solves a problem you have, specify it here.
Describe the proposed feature.
Describe alternatives you've considered
.
Additional context
Related Issues