# ZSH Plugins



### Plugins (installés)

#### You Should Use *

Simple zsh plugin that reminds you that you should use one of your existing aliases for a command you just typed.

https://github.com/MichaelAquilina/zsh-you-should-use

```bash
antibody bundle MichaelAquilina/zsh-you-should-use
```

```bash
zinit light MichaelAquilina/zsh-you-should-use
```

```bash
# Config:

export YSU_MESSAGE_POSITION="after"

# %alias_type: alias, git alias, global alias
# %command: la commande entrée
# %alias: l'alias trouvé

export YSU_MESSAGE_FORMAT="$(tput setaf 1)Hey! I found this %alias_type for %command: %alias$(tput sgr0)"

# Fonctions
check_alias_usage
```

[alias-type](https://github.com/djui/alias-tips)



#### zsh-fast-alias-tips 

Helps you remembering the aliases you defined once.

https://github.com/sei40kr/zsh-fast-alias-tips

```bash

```

```bash
zinit ice from'gh-r' as'program'
zinit light sei40kr/fast-alias-tips-bin
zinit light sei40kr/zsh-fast-alias-tips
```

| Variable                 | Default value      | Description            |
| ------------------------ | ------------------ | ---------------------- |
| `FAST_ALIAS_TIPS_PREFIX` | `"💡 $(tput bold)"` | The prefix of the Tips |
| `FAST_ALIAS_TIPS_SUFFIX` | `"$(tput sgr0)"`   | The suffix of the Tips |



#### diractions *

https://github.com/AdrieanKhisbe/diractions

```bash
antibody bundle "adrieankhisbe/diractions"
```

```bash
zinit light adrieankhisbe/diractions
```

```bash
# Editer fichier .diractions (folders)
nano ~/.diractions
# sauver répertoire courant avec le nom <mkdocs>
diraction save mkdocs
```



#### zsh colored man pages *

https://github.com/ael-code/zsh-colored-man-pages

```bash
antibody bundle ael-code/zsh-colored-man-pages
```

```bash
zinit light ael-code/zsh-colored-man-pages
```



#### shell-plugins (profile-secrets)*

https://github.com/gmatheu/shell-plugins

```bash
zinit snippet 'https://raw.githubusercontent.com/gmatheu/shell-plugins/master/profile-secrets/init.zsh'
```

```bash
# Fichier des secrets par défaut:
~/.profile-secrets/secrets.sh
```

Fonctions:

```bash
# décrypte le fichier des secrets
profile-secrets-decrypt: Decrypts secret file.

# encrypte le fichier des secrets (ou le crée lors du 1er lancement)
profile-secrets-encrypt: Encrypts secret file. First time it is called will create secrets file

# ajoute les variables secrets à la session courante
profile-secrets-source: Decrypts secrets file, source it and encrypts it back.

```



#### Bol *

https://github.com/ikhurramraza/bol

```bash
zinit light ikhurramraza/bol
```

```bash
$ bol print
Kuch bhi hojaye na, to kuch nahi hota
— Urwa Hocane
```

```bash
$ cd /Users/bruno/.zinit/plugins/ikhurramraza---bol/quotes/
drwxr-xr-x 3 bruno staff  96 jul 31 21:28 Bollywood
drwxr-xr-x 3 bruno staff  96 jul 31 21:28 Motivation
drwxr-xr-x 4 bruno staff 128 jul 31 21:28 Originals
drwxr-xr-x 4 bruno staff 128 jul 31 21:28 Seinfeld
drwxr-xr-x 3 bruno staff  96 jul 31 21:28 Supernatural
drwxr-xr-x 3 bruno staff  96 jul 31 21:28 TVD
-rw-r--r-- 1 bruno staff 109 aoû  1 22:10 jvc.txt
```



#### zsh-notify *

Desktop notifications for long-running commands in ZSH.

https://github.com/marzocchi/zsh-notify

```bash
antibody bundle marzocchi/zsh-notify
```

```bash
zinit light marzocchi/zsh-notify
```

```bash
zstyle ':notify:*' error-icon "https://media3.giphy.com/media/10ECejNtM1GyRy/200_s.gif"
zstyle ':notify:*' error-title "Command failed (in #{time_elapsed} seconds)"
zstyle ':notify:*' success-icon "https://s-media-cache-ak0.pinimg.com/564x/b5/5a/18/b55a1805f5650495a74202279036ecd2.jpg"
zstyle ':notify:*' success-title "Command finished (in #{time_elapsed} seconds)"
zstyle ':notify:*' error-sound "Glass"
zstyle ':notify:*' success-sound "default"
```

[auto-notify](https://github.com/MichaelAquilina/zsh-auto-notify)



#### forgit *

This tool is designed to help you use git more efficiently (fzf).

https://github.com/wfxr/forgit

```bash
antibody bundle wfxr/forgit
```

- **Interactive `git add` selector** (`ga`)

- **Interactive `git log` viewer** (`glo`)

- **Interactive `.gitignore` generator** (`gi`)

- **Interactive `git diff` viewer** (`gd`)

- **Interactive `git reset HEAD <file>` selector** (`grh`)

- **Interactive `git checkout <file>` selector** (`gcf`)

- **Interactive `git checkout <branch>` selector** (`gcb`)

- **Interactive `git checkout <commit>` selector** (`gco`)

- **Interactive `git stash` viewer** (`gss`)

- **Interactive `git clean` selector** (`gclean`)

- **Interactive `git cherry-pick` selector** (`gcp`)

- **Interactive `git rebase -i` selector** (`grb`)

- **Interactive `git commit --fixup && git rebase -i --autosquash` selector** (`gfu`)

  

#### 

#### Fast Syntax Highlighting *

https://github.com/zdharma/fast-syntax-highlighting

```bash
antibody bundle zdharma/fast-syntax-highlighting
```

```bash
zinit light zdharma/fast-syntax-highlighting
```

```bash
# liste des themes
❯ fast-theme -l
Found existing alias for "fast-theme". You should use: "fsh-alias"
Available themes:
clean
default
forest
free
q-jmnemonic
safari
spa
sv-orple
sv-plant
zdharma

# changer de thème
❯ fast-theme -t <theme-name>
```



#### history-search-multi-word *

https://github.com/zdharma/history-search-multi-word

```bash
zinit load zdharma/history-search-multi-word
```

```
Ctrl-R
```

```bash
❯ hist
Ctrl-K – context, Ctrl-J – bump. Entry #1 of 50
> abspath .zsh_history
  history | grep man
  history | grep curl
  history
  history | tail
  history -x
  antibody purge jimeh/zsh-peco-history
  cd zsh-history-enquirer
  cd zsh-directory-history
  which zsh-history-enquirer
  npm i -g zsh-history-enquirer
  antibody purge tymm/zsh-directory-history
```



#### zsh-autosuggestions *

https://github.com/zsh-users/zsh-autosuggestions

```bash
antibody bundle zsh-users/zsh-autosuggestions
```

```bash
zinit light zsh-users/zsh-autosuggestions
```

```bash
Touche ->
```



#### zsh-completions *


https://github.com/zsh-users/zsh-completions

```bash
antibody bundle zsh-users/zsh-completions
```

```bash
zinit light zsh-users/zsh-completions
```



#### venv-wrapper 

zsh plugin defining functions to wrap working with python's builtin venv module

https://github.com/glostis/venv-wrapper

```
zinit light glostis/venv-wrapper
```

```bash
# Créer un venv
❯ venv test2
Virtual environment `test2` does not exist.
Do you want to create it? [y/n]y
Created and activated venv test2

# Supprimer un venv
❯ rmvenv test2
Removed venv test2

# Liste des venv
❯ venv
Type `venv name_of_env` to activate a virtual environment.

Here is the list of existing virtual environments:
--------------------------------------------------
test

# Activer un venv
❯ venv test

~/Documents/venv                                                       06:59:57
test ❯

# Variables
$VENV_WRAPPER_PYTHON
```



!!! info

export PATH="$HOME/Documents/venv/soco-cli/bin:$PATH"



#### zsh-fzf-history-search

[zsh-fzf-history-search.zsh](https://github.com/joshskidmore/zsh-fzf-history-search/blob/master/zsh-fzf-history-search.zsh)

```bash
# zsh-fzf-history-search
zinit ice lucid wait'0'
zinit light joshskidmore/zsh-fzf-history-search
```



#### fzf-zsh-plugin

https://github.com/unixorn/fzf-zsh-plugin

```bash
zinit load unixorn/fzf-zsh-plugin
```



#### web-search *

Lance une recherche depuis le terminal.

https://github.com/sineto/web-search

```bash
zinit snippet 'https://raw.githubusercontent.com/sineto/web-search/master/web_search.plugin.zsh'
```

```
google <search>
ddg <search>
github <search>
youtube <search>
```



#### z-a-man *(marche pas)

https://github.com/zinit-zsh/z-a-man

```bash
zinit light zinit-zsh/z-a-man
```

```bash
# View README.md manpage in the terminal
zman z-a-man
# View the code documentation (via the full plugin name, as demonstrated)
zman -c zinit-zsh/z-a-man
```



### Plugins (autres)

#### FM

https://github.com/ddnexus/fm

```bash
antibody bundle ddnexus/fm
```

#### zshmarks

https://github.com/jocelynmallon/zshmarks

```bash
antibody bundle jocelynmallon/zshmarks
```

#### zsh-history-substring-search

https://github.com/zsh-users/zsh-history-substring-search

```bash
antibody bundle zsh-users/zsh-history-substring-search
```

#### zsh-peco-history

https://github.com/jimeh/zsh-peco-history

```bash
antibody bundle jimeh/zsh-peco-history
```

#### zsh-history-enquirer

https://github.com/zthxxx/zsh-history-enquirer

```bash
npm i -g zsh-history-enquirer
echo 'source `npm root -g`/zsh-history-enquirer/scripts/zsh-history-enquirer.plugin.zsh' >> ~/.zshrc
```

```
Ctrl-R
```

#### antibody-completion

https://github.com/sinetoami/antibody-completion

```
antibody bundle sinetoami/antibody-completion
```

#### zsh-async

https://github.com/mafredri/zsh-async

```bash
antibody bundle mafredri/zsh-async
```

#### mysql.plugin.zsh

https://github.com/voronkovich/mysql.plugin.zsh

```bash
antibody bundle voronkovich/mysql.plugin.zsh
```

#### zsh-autocomplete

https://github.com/marlonrichert/zsh-autocomplete

```bash
antibody bundle marlonrichert/zsh-autocomplete
```

#### zsh-notes

https://github.com/aperezdc/zsh-notes

```
antibody bundle aperezdc/zsh-notes
```

#### Interactive-cd

https://github.com/changyuheng/zsh-interactive-cd

#### Link File Plugin

https://github.com/JaumeRF/linkfile-zsh

#### zsh-lux

https://github.com/pndurette/zsh-lux

```bash
antibody bundle pndurette/zsh-lux
```

#### Shelf

https://github.com/ecmma/shelf

```bash
antibody bundle ecmma/shelf
```

```bash

```



### Thèmes

#### Powerlevel10k

https://github.com/romkatv/powerlevel10k/#antibody

```bash
antibody bundle romkatv/powerlevel10k
```

```bash
zinit ice depth"1" # git clone depth
zinit light romkatv/powerlevel10k
```



#### Pure

https://github.com/sindresorhus/pure

```bash
antibody bundle sindresorhus/pure
```





### Plugins Managers

#### Zinit *

https://github.com/zdharma/zinit (2021) (zpluggin)*

#### zplug

https://github.com/zplug/zplug (R2017)(2020)*



https://github.com/zpm-zsh/zpm (2021)

https://github.com/tarjoilija/zgen (2018)

https://github.com/zsh-users/antigen (2018)

https://github.com/sorin-ionescu/prezto (2021)

https://github.com/getantibody/antibody (2020)

#### 



### Liens

https://github.com/unixorn/awesome-zsh-plugins

https://learnpracticeandshare.com/awesome-zsh-plugins-massive-collection-of-resources/#alf

