Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

77 linhas
1.9 KiB

  1. ## Installation
  2. ### Manual (Git Clone)
  3. 1. Clone this repository somewhere on your machine. This guide will assume `~/.zsh/zsh-autosuggestions`.
  4. ```sh
  5. git clone https://github.com/zsh-users/zsh-autosuggestions ~/.zsh/zsh-autosuggestions
  6. ```
  7. 2. Add the following to your `.zshrc`:
  8. ```sh
  9. source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
  10. ```
  11. 3. Start a new terminal session.
  12. ### Antigen
  13. 1. Add the following to your `.zshrc`:
  14. ```sh
  15. antigen bundle zsh-users/zsh-autosuggestions
  16. ```
  17. 2. Start a new terminal session.
  18. ### Oh My Zsh
  19. 1. Clone this repository into `$ZSH_CUSTOM/plugins` (by default `~/.oh-my-zsh/custom/plugins`)
  20. ```sh
  21. git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
  22. ```
  23. 2. Add the plugin to the list of plugins for Oh My Zsh to load:
  24. ```sh
  25. plugins=(zsh-autosuggestions)
  26. ```
  27. 3. Start a new terminal session.
  28. ### Arch Linux
  29. 1. Install [`zsh-autosuggestions`](https://www.archlinux.org/packages/community/any/zsh-autosuggestions/) from the `community` repository.
  30. ```sh
  31. pacman -S zsh-autosuggestions
  32. ```
  33. 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).
  34. 2. Add the following to your `.zshrc`:
  35. ```sh
  36. source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
  37. ```
  38. 3. Start a new terminal session.
  39. ### macOS via Homebrew
  40. 1. Install the `zsh-autosuggestions` package using [Homebrew](https://brew.sh/).
  41. ```sh
  42. brew install zsh-autosuggestions
  43. ```
  44. 2. Add the following to your `.zshrc`:
  45. ```sh
  46. source /usr/local/share/zsh-autosuggestions/zsh-autosuggestions.zsh
  47. ```
  48. 3. Start a new terminal session.