Aller au contenu

Antibody

http://getantibody.github.io

Installer Antibody:
$ brew install getantibody/tap/antibody
$ curl -sL git.io/antibody | sh -s
Fichier plugins:
~/.zsh_plugins.txt
Chargement static:
$ antibody bundle < ~/.zsh_plugins.txt > ~/.zsh_plugins.sh
Supprimer un plugin:
[bruno@SilverBook/~] $ antibody purge denysdovhan/spaceship-prompt
Removing denysdovhan/spaceship-prompt...
removed!
Tout mettre à jour:
[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:

$ 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:

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

# ou

rm -rf "$(antibody home)"

puis les recharger:

$ antibody bundle < ~/.zsh_plugins.txt > ~/.zsh_plugins.sh
Liste des plugins/thèmes installés:
[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
[bruno@SilverBook/~] $ antibody home
/Users/bruno/Library/Caches/antibody
[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


Dernière mise à jour: April 3, 2020