# Antibody



http://getantibody.github.io



##### Installer Antibody:

```bash
$ brew install getantibody/tap/antibody
$ curl -sL git.io/antibody | sh -s
```

##### Fichier  plugins:

```bash
~/.zsh_plugins.txt
```



##### Chargement static:

```bash
$ antibody bundle < ~/.zsh_plugins.txt > ~/.zsh_plugins.sh
```



##### Supprimer un plugin:

```bash
[bruno@SilverBook/~] $ antibody purge denysdovhan/spaceship-prompt
Removing denysdovhan/spaceship-prompt...
removed!
```



##### Tout mettre à jour:

```bash
[bruno@SilverBook/~] $ antibody update
Updating all bundles in /Users/bruno/Library/Caches/antibody...
updating: https://github.com/marzocchi/zsh-notify
updating: https://github.com/zsh-users/zsh-completions
updating: https://github.com/zsh-users/zsh-history-substring-search
updating: https://github.com/zdharma/fast-syntax-highlighting
updating: https://github.com/zsh-users/zsh-autosuggestions
```

Si erreur pendant la mise-à-jour:

```bash
$ antibody update
Updating all bundles in /Users/bruno/Library/Caches/antibody...
antibody: updating: https://github.com/zsh-users/zsh-history-substring-search
antibody: updating: https://github.com/sindresorhus/pure
antibody: updating: https://github.com/mafredri/zsh-async
antibody: updating: https://github.com/zsh-users/zsh-autosuggestions
antibody: updating: https://github.com/zsh-users/zsh-completions
antibody: updating: https://github.com/marzocchi/zsh-notify
antibody: updating: https://github.com/zdharma/fast-syntax-highlighting
antibody: git update failed for /Users/bruno/Library/Caches/antibody/https-COLON--SLASH--SLASH-github.com-SLASH-zdharma-SLASH-fast-syntax-highlighting
antibody: git update failed for /Users/bruno/Library/Caches/antibody/https-COLON--SLASH--SLASH-github.com-SLASH-marzocchi-SLASH-zsh-notify
antibody: git update failed for /Users/bruno/Library/Caches/antibody/https-COLON--SLASH--SLASH-github.com-SLASH-zsh-users-SLASH-zsh-autosuggestions
antibody: git update failed for /Users/bruno/Library/Caches/antibody/https-COLON--SLASH--SLASH-github.com-SLASH-sindresorhus-SLASH-pure
antibody: git update failed for /Users/bruno/Library/Caches/antibody/https-COLON--SLASH--SLASH-github.com-SLASH-zsh-users-SLASH-zsh-completions
antibody: error: failed to update: object not found
```

il faut vider le cache:

```bash
~/Library/Caches/antibody
❯ rm -rf https-COLON*

# ou

rm -rf "$(antibody home)"
```

puis les recharger:

```bash
$ antibody bundle < ~/.zsh_plugins.txt > ~/.zsh_plugins.sh
```





##### Liste des plugins/thèmes installés:

```bash
[bruno@SilverBook/~] $ antibody list
https://github.com/marzocchi/zsh-notify                      /Users/bruno/Library/Caches/antibody/https-COLON--SLASH--SLASH-github.com-SLASH-marzocchi-SLASH-zsh-notify
https://github.com/zdharma/fast-syntax-highlighting          /Users/bruno/Library/Caches/antibody/https-COLON--SLASH--SLASH-github.com-SLASH-zdharma-SLASH-fast-syntax-highlighting
https://github.com/zsh-users/zsh-autosuggestions             /Users/bruno/Library/Caches/antibody/https-COLON--SLASH--SLASH-github.com-SLASH-zsh-users-SLASH-zsh-autosuggestions
https://github.com/zsh-users/zsh-completions                 /Users/bruno/Library/Caches/antibody/https-COLON--SLASH--SLASH-github.com-SLASH-zsh-users-SLASH-zsh-completions
https://github.com/zsh-users/zsh-history-substring-search    /Users/bruno/Library/Caches/antibody/https-COLON--SLASH--SLASH-github.com-SLASH-zsh-users-SLASH-zsh-history-substring-search
```



##### Home

```bash
[bruno@SilverBook/~] $ antibody home
/Users/bruno/Library/Caches/antibody
```

```bash
[bruno@SilverBook/~] $ cd /Users/bruno/Library/Caches/antibody
[bruno@SilverBook/antibody] $ l
total 0
drwxr-xr-x    7 bruno  staff   224  8 jui 08:08 .
drwx------+ 282 bruno  staff  9024  8 jui 06:38 ..
drwxr-xr-x    9 bruno  staff   288  7 jui 18:08 https-COLON--SLASH--SLASH-github.com-SLASH-marzocchi-SLASH-zsh-notify
drwxr-xr-x   24 bruno  staff   768  7 jui 17:58 https-COLON--SLASH--SLASH-github.com-SLASH-zdharma-SLASH-fast-syntax-highlighting
drwxr-xr-x   25 bruno  staff   800  7 jui 18:01 https-COLON--SLASH--SLASH-github.com-SLASH-zsh-users-SLASH-zsh-autosuggestions
drwxr-xr-x   12 bruno  staff   384  7 jui 18:08 https-COLON--SLASH--SLASH-github.com-SLASH-zsh-users-SLASH-zsh-completions
drwxr-xr-x    7 bruno  staff   224  7 jui 18:01 https-COLON--SLASH--SLASH-github.com-SLASH-zsh-users-SLASH-zsh-history-substring-search
```





# Z plugin (jump around)



https://github.com/rupa/z

Copier le script `z.sh` dans `/usr/local/etc/profile.d/`

puis ajouter `. /usr/local/etc/profile.d/z.sh` au fichier .zshrc