Zsh community projects (not directly affiliated with the zsh project). If you have a project you want to host here, ping @nicoulaj / IRC #zsh-users. Welcome folks to this very tutorial on how to install and setup Zsh and Oh-my-Zsh on Ubuntu 18.04. Z shell (ZSH) is a Unix shell that can be used as an interactive login shell and as well as a command interpreter for shell scripting. It incorporates features of other shells such as Bash, tcsk, ksh.
Git Clone URL: | https://aur.archlinux.org/zsh-autosuggestions-git.git (read-only, click to copy) |
---|---|
Package Base: | zsh-autosuggestions-git |
Description: | Fish-like autosuggestions for zsh (from git) |
Upstream URL: | https://github.com/zsh-users/zsh-autosuggestions |
Keywords: | |
Licenses: | MIT |
Conflicts: | zsh-autosuggestions |
Provides: | zsh-autosuggestions |
Submitter: | ams1 |
Maintainer: | amoka |
Last Packager: | amoka |
Votes: | 14 |
Popularity: | 0.45 |
First Submitted: | 2015-09-02 12:50 |
Last Updated: | 2021-01-06 04:24 |
@al0o0z, you can list a package's files with pacman -Ql zsh-autosuggestions-git.
In this case, you have to source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
I just installed this some other xsh plugins from aur. But where are thy installed? I cant find them using which command. So how can i ad them to .zshrc?
@nishantvarma, it's a build dependency. Once you've installed zsh-autosuggestions you can safely uninstall ruby-doc.
I need to install ruby-rdoc? Is that a dependency then?
The test failures are reported upstream:
https://github.com/zsh-users/zsh-autosuggestions/issues/253
I fixed the test support, but there are test failures upstream right now (AFAICT).
You can still install with --nocheck.
Running 'make' is probably optional, if you trust the devs to always commit the complete script, but there's no harm in it.
I think there are some makedepends that need to be added for zsh-autosuggestions' make right?
ruby-rspec and ruby-bundler for package() and check() requires a ruby package (gem? not familiar with ruby) pry-byebug that I can't find in the AUR.
I also don't think that you actually need to call make, the plugin is already built in the repo, according to the README make is for development.
Your new pkgver fuction will create invalid versions. Please see https://wiki.archlinux.org/index.php/VCS_package_guidelines https://asatka.over-blog.com/2021/02/can-you-play-animal-crossing-on-nintendo-switch.html.
As of 2016-02-08, there are new guidelines for compatibility with zsh-syntax-highlighting and zsh-history-substring-search.
If you get crashes, funny behaviour, or error messages, please review the README file in the GitHub repository.
Fish-like fast/unobtrusive autosuggestions for zsh.
It suggests commands as you type based on history and completions.
Requirements: Zsh v4.3.11 or later
See INSTALL.md.
As you type commands, you will see a completion offered after the cursor in a muted gray color. This color can be changed by setting the ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE variable. See configuration.
If you press the → key (forward-char widget) or End (end-of-line widget) with the cursor at the end of the buffer, it will accept the suggestion, replacing the contents of the command line buffer with the suggestion.
If you invoke the forward-word widget, it will partially accept the suggestion up to the point that the cursor moves to.
You may want to override the default global config variables. Default values of these variables can be found here.
Note: If you are using Oh My Zsh, you can put this configuration in a file in the $ZSH_CUSTOM directory. See their comments on overriding internals.
Set ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE to configure the style that the suggestion is shown with. The default is fg=8, which will set the foreground color to color 8 from the 256-color palette. If your terminal only supports 8 colors, you will need to use a number between 0 and 7.
Background color can also be set, and the suggestion can be styled bold, underlined, or standout. For example, this would show suggestions with bold, underlined, pink text on a cyan background:
For more info, read the Character Highlighting section of the zsh manual: man zshzle or online.
Note: Some iTerm2 users have reported not being able to see the suggestions. If this affects you, the problem is likely caused by incorrect color settings. In order to correct this, go into iTerm2's setting, navigate to profile > colors and make sure that the colors for Basic Colors > Background and ANSI Colors > Bright Black are different.
https://ttpic.over-blog.com/2021/02/download-latest-google-chrome-full-offline-installer.html. ZSH_AUTOSUGGEST_STRATEGY is an array that specifies how suggestions should be generated. The strategies in the array are tried successively until a suggestion is found. There are currently three built-in strategies to choose from:
For example, setting ZSH_AUTOSUGGEST_STRATEGY=(history completion) will first try to find a suggestion from your history, but, if it can't find a match, will find a suggestion from the completion engine.
This plugin works by triggering custom behavior when certain zle widgets are invoked. You can add and remove widgets from these arrays to change the behavior of this plugin:
Widgets that modify the buffer and are not found in any of these arrays will fetch a new suggestion after they are invoked.
Note: A widget shouldn't belong to more than one of the above arrays.
Set ZSH_AUTOSUGGEST_BUFFER_MAX_SIZE to an integer value to disable autosuggestion for large buffers. The default is unset, which means that autosuggestion will be tried for any buffer size. Recommended value is 20.This can be useful when pasting large amount of text in the terminal, to avoid triggering autosuggestion for strings that are too long.
As of v0.4.0, suggestions can be fetched asynchronously. To enable this behavior, set the ZSH_AUTOSUGGEST_USE_ASYNC variable (it can be set to anything).
Set ZSH_AUTOSUGGEST_MANUAL_REBIND (it can be set to anything) to disable automatic widget re-binding on each precmd. This can be a big boost to performance, but you'll need to handle re-binding yourself if any of the widget lists change or if you or another plugin wrap any of the autosuggest widgets. To re-bind widgets, run _zsh_autosuggest_bind_widgets.
Set ZSH_AUTOSUGGEST_HISTORY_IGNORE to a glob pattern to prevent offering suggestions for history entries that match the pattern. For example, set it to 'cd *' to never suggest any cd commands from history. Or set to '?(#c50,)' to never suggest anything 50 characters or longer.
Note: This only affects the history and match_prev_cmd suggestion strategies.
Set ZSH_AUTOSUGGEST_COMPLETION_IGNORE to a glob pattern to prevent offering completion suggestions when the buffer matches that pattern. For example, set it to 'git *' to disable completion suggestions for git subcommands.
Note: This only affects the completion suggestion strategy.
This plugin provides a few widgets that you can use with bindkey:
For example, this would bind ctrl + space to accept the current suggestion.
If you have a problem, please search through the list of issues on GitHub to see if someone else has already reported it.
Before reporting an issue, please try temporarily disabling sections of your configuration and other plugins that may be conflicting with this plugin to isolate the problem.
When reporting an issue, please include:
Remove the code referencing this plugin from ~/.zshrc.
Remove the git repository from your hard drive
shrm -rf ~/.zsh/zsh-autosuggestions # Or wherever you installed
Edit the source files in src/. Run make to build zsh-autosuggestions.zsh from those source files.
Pull requests are welcome! If you send a pull request, please:
Tests are written in ruby using the rspec framework. They use tmux to drive a pseudoterminal, sending simulated keystrokes and making assertions on the terminal content.
Mount your friends mods. Test files live in spec/. To run the tests, run make test. To run a specific test, run TESTS=spec/some_spec.rb make test. You can also specify a zsh binary to use by setting the TEST_ZSH_BIN environment variable (ex: TEST_ZSH_BIN=/bin/zsh make test).
A docker image for testing is available on docker hub. It comes with ruby, the bundler dependencies, and all supported versions of zsh installed.
Pull the docker image with:
To run the tests for a specific version of zsh (where <version> below is substituted with the contents of a line from the ZSH_VERSIONS file):
This project is licensed under MIT license.For the full text of the license, see the LICENSE file.