2019-06-19 21:30:36 +00:00
# Installation
2018-05-21 17:35:26 +00:00
2019-06-19 21:30:36 +00:00
* [Manual ](#manual-git-clone )
* [Antigen ](#antigen )
* [Oh My Zsh ](#oh-my-zsh )
* [Arch Linux ](#arch-linux )
* [macOS via Homebrew ](#macos-via-homebrew )
## Manual (Git Clone)
2018-05-21 17:35:26 +00:00
1. Clone this repository somewhere on your machine. This guide will assume `~/.zsh/zsh-autosuggestions` .
```sh
git clone https://github.com/zsh-users/zsh-autosuggestions ~/.zsh/zsh-autosuggestions
```
2. Add the following to your `.zshrc` :
```sh
source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
```
3. Start a new terminal session.
2019-06-19 21:30:36 +00:00
## Antigen
2018-06-30 21:38:05 +00:00
1. Add the following to your `.zshrc` :
```sh
antigen bundle zsh-users/zsh-autosuggestions
```
2. Start a new terminal session.
2019-06-19 21:30:36 +00:00
## Oh My Zsh
2018-05-21 17:35:26 +00:00
1. Clone this repository into `$ZSH_CUSTOM/plugins` (by default `~/.oh-my-zsh/custom/plugins` )
```sh
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
```
2018-07-03 02:25:20 +00:00
2. Add the plugin to the list of plugins for Oh My Zsh to load (inside `~/.zshrc` ):
2018-05-21 17:35:26 +00:00
```sh
plugins=(zsh-autosuggestions)
```
3. Start a new terminal session.
2019-06-19 21:30:36 +00:00
## Arch Linux
2018-05-21 17:35:26 +00:00
1. Install [`zsh-autosuggestions` ](https://www.archlinux.org/packages/community/any/zsh-autosuggestions/ ) from the `community` repository.
```sh
pacman -S zsh-autosuggestions
```
or, to use a package based on the `master` branch, install [`zsh-autosuggestions-git` ](https://aur.archlinux.org/packages/zsh-autosuggestions-git/ ) from the [AUR ](https://wiki.archlinux.org/index.php/Arch_User_Repository ).
2. Add the following to your `.zshrc` :
```sh
source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
```
3. Start a new terminal session.
2019-06-19 21:30:36 +00:00
## macOS via Homebrew
2018-05-21 17:35:26 +00:00
1. Install the `zsh-autosuggestions` package using [Homebrew ](https://brew.sh/ ).
```sh
brew install zsh-autosuggestions
```
2. Add the following to your `.zshrc` :
```sh
source /usr/local/share/zsh-autosuggestions/zsh-autosuggestions.zsh
```
3. Start a new terminal session.