32 lines
1.4 KiB
Bash
Executable File
32 lines
1.4 KiB
Bash
Executable File
#!/bin/bash
|
|
# zshplugins.sh — Install third-party Oh My Zsh plugins
|
|
#
|
|
# Run this script once after a fresh install to pull plugins that are not
|
|
# bundled with Oh My Zsh itself. These plugins are cloned directly into
|
|
# the OMZ custom plugins directory so OMZ picks them up automatically.
|
|
#
|
|
# Plugins installed:
|
|
# - zsh-syntax-highlighting: colors valid commands green and errors red
|
|
# as you type — immediate feedback before pressing Enter.
|
|
# - zsh-autosuggestions: shows ghost-text completions derived from command
|
|
# history; accept with the right-arrow key.
|
|
#
|
|
# After cloning, add both to the plugins=(...) array in ~/.zshrc and restart
|
|
# your shell (or run: source ~/.zshrc).
|
|
#
|
|
# Usage: bash ~/Dotfiles/zshplugins.sh
|
|
#
|
|
|
|
#ohmyzsh plugins
|
|
echo "Installing oh my zsh plugins"
|
|
|
|
# Clone zsh-syntax-highlighting into the OMZ custom plugins directory.
|
|
# ${ZSH_CUSTOM:-~/.oh-my-zsh/custom} resolves to $ZSH_CUSTOM if set (non-standard
|
|
# OMZ install location), or falls back to the default path.
|
|
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
|
|
|
|
# Clone zsh-autosuggestions into the same directory.
|
|
# Requires zsh-syntax-highlighting to already be loaded for optimal display,
|
|
# though both are independent and can be loaded in any order.
|
|
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
|