1.8 KiB
1.8 KiB
status: #doc Tags: #zsh #shell #zap links: Date: 2023-07-10
Zsh
install
sudo pacman -S zsh
make defult shell
chsh -s $(which zsh)
then restart
install nerd fonts
first make ~/.local/bin
to make path
then install getnf from here and use it to install the fonts
zap plugin manager
Install
zsh <(curl -s https://raw.githubusercontent.com/zap-zsh/zap/master/install.zsh) --branch release-v1
Example usage
listing plugin in .zshrc
# Example install of plugins
plug "zap-zsh/supercharge"
plug "zsh-users/zsh-autosuggestions"
You can also use Zap
to install custom plugins or source custom files present on your local filesystem. A file descriptor which points to a directory is treated as a plugin, versus a regular file. For example:
# Example install of a local plugin
plug "$HOME/plugins/my-custom-prompt"
# Example sourcing of local files
plug "$HOME/.config/zsh/aliases.zsh"
plug "$HOME/.config/zsh/exports.zsh"
Commands
Zap provided commands for updating and cleaning up plugins
-
To update plugins or Zap:
zap update self # Update the Zap installation zap update plugins # Update all your plugins but not Zap zap update all # Update both the Zap installation and its plugins zap list # list all plugin installed zap clean # remove plugins no longer in use
Plugins
- zsh-syntax-highlighting -> here
- zsh-autosuggestions ->here
- p10k prompt -> here
- zap defult supercharge ->here