# ZSH
#typ/Liste #tool/macos #tool/linux
Install: OMZ ^nvtmyf
```bash
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
```
Set default
`chsh -s $(which zsh)`
## Tricks
### use bash autocomplete
→ https://stackoverflow.com/questions/3249432/can-a-bash-tab-completion-script-be-used-in-zsh
```sh
autoload bashcompinit
bashcompinit
source /path/to/your/bash_completion_file
```
### use zsh in ish on iOS
1. Install git `sudo apk add git`
2. Install zsh `sudo apk add zsh`
3. Install curl `sudo apk add curl`
4. Edit `~/.profile` and add `zsh` to the first line
## Neat Themes
- bureau (root) 
- intheloop (remote) 
- neat, minimal
- refined (user) 
- super clean, close to pure
- external: [Pure – Pretty, minimal and fast ZSH prompt](https://github.com/sindresorhus/pure?tab=readme-ov-file#getting-started) 
- my personal choice. clean, no frills, informative.
- external: [Starship – minimal, blazing-fast, and infinitely customizable prompt for any shell!](https://starship.rs) 
- some presets: https://starship.rs/presets/
## Delightful Plugins
- [zsh-autosuggestions: Fish-like autosuggestions for zsh](https://githuzsh-autosuggestions)
- [zsh-syntax-highlighting: Fish shell like syntax highlighting for Zsh.](https://github.com/zsh-users/zsh-syntax-highlighting)
- [fast-syntax-highlighting: Feature-rich syntax highlighting for ZSH](https://github.com/zdharma-continuum/fast-syntax-highlighting)
- [zsh-autocomplete: 🤖 Real-time type-ahead completion for Zsh. Asynchronous find-as-you-type autocompletion.](https://github.com/marlonrichert/zsh-autocomplete)
```
git clone https://github.com/zsh-users/zsh-autosuggestions.git ./zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ./zsh-syntax-highlighting
git clone https://github.com/zdharma-continuum/fast-syntax-highlighting.git ./fast-syntax-highlighting
git clone https://github.com/marlonrichert/zsh-autocomplete.git ./zsh-autocomplete
```
```
zsh-autosuggestions
zsh-syntax-highlighting
fast-syntax-highlighting
zsh-autocomplete
```
## CLI Additions
- [fzf](https://junegunn.github.io/fzf/)
- `brew install fzf`
- interactive version of “grep” with crazy good zsh integration
- ALT-C = cd into the selected directory
- CTRL-T = complete command
### [Micro](https://micro-editor.github.io) Editor
- [palettero: Command palette for Micro editor](https://github.com/terokarvinen/palettero)
- [filemanager: A file manager plugin for the editor "Micro"](https://github.com/NicolaiSoeborg/filemanager-plugin)