11/17/2023 0 Comments Zsh autocomplete![]() ![]() You customize the command it uses, and run specific commands in a Git repo: magic-enter: This plugin makes your enter key magical, by binding commonly used commands to it.colored-man-pages: Adds colors to man pages.colorize: Syntax-highlight file contents of over 300 supported languages and other text formats.Uses alt-arrowkeys by default, so ensure these do not conflict with other shortcuts. dirhistory: Adds keyboard shortcuts for navigating directory history and hierarchy.history: Provides a couple of convenient aliases for using the history command to examine your command line history.web-search: This plugin adds aliases for searching with Google, Wiki, Bing, YouTube and other popular services.command-not-found: provide suggested packages to be installed if a command cannot be found.copybuffer: This plugin binds the ctrl-o keyboard shortcut to a command that copies the text that is currently typed in the command line ( $BUFFER) to the system clipboard.copyfile: Puts the contents of a file in your system clipboard so you can paste it anywhere.copypath: Copies the path of given directory or file to the system clipboard.# completions you already had configured.Enter fullscreen mode Exit fullscreen mode # what it does, however experimentation has shown that running "compinit" clobbers any # Have resulted in everyone's zsh autocomplete initialization running that. # It seems that countless recommendations on the web to run: Which fixed the problem for him and others: autoload -Uz compinit The author then added the following lines to. This coupled with tons of recommendations on the web to run it to "fix" autocompletion issues appears to have led to multiple projects including it in their auto completion initialization files (two that I use: nvm and sdkman appear to have done so) - which results in the latest one to load clobbering the configuration of all those before it! I'm not going to pretend to know anything about compinit, but some experimentation has shown that running it clobbers any auto completion that has already been configured. It looks like this problem could be similar to another one posted here, but it hasn't received any answers.Īutocomplete in zsh (with oh-my-zsh) not working #353 I originally posted this issue on the Discussion tab in the Oh-my-zsh GitHub repo a couple weeks ago, but it hasn't gotten any answers. I'm not sure if it's an issue with my installation of ZSH, or something to do with MacOS? I've no idea how to even start degugging this. I can uninstall oh-my-zsh with uninstall_oh_my_zsh, reinstall it with the sh -c "$(curl -fsSL )", close the terminal, and then reopen it again, and pass autocomplete works again! But then as soon as I close that terminal window, I'll lose the autocomplete. If I close the terminal and then open it back up again, the auto complete no longer works.So pass + TAB will list my password options. At the point, pass auto complete is working fine.Open terminal (Hyper, iTerm, whatever doesn't seem to matter).The autocomplete bundled with oh-my-zsh doesn't seem to be working properly. I'm using the Unix Pass manager, which is used with the pass command. If I close and re-open the terminal, auto-complete no longer works. TLDR: Auto-complete only works directly after installing oh-my-zsh. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |