status: #doc Tags: #zsh #shell #zap links: Date: 2023-07-10 ___ # Zsh ## install ```sh sudo pacman -S zsh ``` ## make defult shell ```sh chsh -s $(which zsh) ``` then restart ## install nerd fonts first make `~/.local/bin` to [[make path|path]] then install getnf from [here](https://github.com/ronniedroid/getnf) and use it to install the fonts ## [zap](https://github.com/zap-zsh/zap) plugin manager ### Install ```shell zsh <(curl -s https://raw.githubusercontent.com/zap-zsh/zap/master/install.zsh) --branch release-v1 ``` ### Example usage listing plugin in `.zshrc` ```zsh # 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: ```zsh # 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: ```zsh 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](https://github.com/zsh-users/zsh-syntax-highlighting) - zsh-autosuggestions ->[here](https://github.com/zsh-users/zsh-autosuggestions) - p10k prompt -> [here](https://github.com/romkatv/powerlevel10k) - zap defult supercharge ->[here](https://github.com/zap-zsh/supercharge) --- # References