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
antibody bundle MichaelAquilina/zsh-you-should-use
zinit light MichaelAquilina/zsh-you-should-use
# 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
zsh-fast-alias-tips¶
Helps you remembering the aliases you defined once.
https://github.com/sei40kr/zsh-fast-alias-tips
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
antibody bundle "adrieankhisbe/diractions"
zinit light adrieankhisbe/diractions
# 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
antibody bundle ael-code/zsh-colored-man-pages
zinit light ael-code/zsh-colored-man-pages
shell-plugins (profile-secrets)*¶
https://github.com/gmatheu/shell-plugins
zinit snippet 'https://raw.githubusercontent.com/gmatheu/shell-plugins/master/profile-secrets/init.zsh'
# Fichier des secrets par défaut:
~/.profile-secrets/secrets.sh
Fonctions:
# 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
zinit light ikhurramraza/bol
$ bol print
Kuch bhi hojaye na, to kuch nahi hota
— Urwa Hocane
$ 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
antibody bundle marzocchi/zsh-notify
zinit light marzocchi/zsh-notify
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"
forgit *¶
This tool is designed to help you use git more efficiently (fzf).
https://github.com/wfxr/forgit
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
antibody bundle zdharma/fast-syntax-highlighting
zinit light zdharma/fast-syntax-highlighting
# 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
zinit load zdharma/history-search-multi-word
Ctrl-R
❯ 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
antibody bundle zsh-users/zsh-autosuggestions
zinit light zsh-users/zsh-autosuggestions
Touche ->
zsh-completions *¶
https://github.com/zsh-users/zsh-completions
antibody bundle zsh-users/zsh-completions
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
# 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"
web-search *¶
Lance une recherche depuis le terminal.
https://github.com/sineto/web-search
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
zinit light zinit-zsh/z-a-man
# 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¶
antibody bundle ddnexus/fm
zshmarks¶
https://github.com/jocelynmallon/zshmarks
antibody bundle jocelynmallon/zshmarks
zsh-history-substring-search¶
https://github.com/zsh-users/zsh-history-substring-search
antibody bundle zsh-users/zsh-history-substring-search
zsh-peco-history¶
https://github.com/jimeh/zsh-peco-history
antibody bundle jimeh/zsh-peco-history
zsh-history-enquirer¶
https://github.com/zthxxx/zsh-history-enquirer
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
antibody bundle mafredri/zsh-async
mysql.plugin.zsh¶
https://github.com/voronkovich/mysql.plugin.zsh
antibody bundle voronkovich/mysql.plugin.zsh
zsh-autocomplete¶
https://github.com/marlonrichert/zsh-autocomplete
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
antibody bundle pndurette/zsh-lux
Shelf¶
https://github.com/ecmma/shelf
antibody bundle ecmma/shelf
Thèmes¶
Powerlevel10k¶
https://github.com/romkatv/powerlevel10k/#antibody
antibody bundle romkatv/powerlevel10k
zinit ice depth"1" # git clone depth
zinit light romkatv/powerlevel10k
Pure¶
https://github.com/sindresorhus/pure
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