add oh my zsh plugins to install cmd

This commit is contained in:
Chen Asraf
2022-02-26 14:28:27 +02:00
parent cef7701224
commit 1ed06724bb
4 changed files with 23 additions and 13 deletions

1
.gitignore vendored
View File

@@ -1,4 +1,3 @@
man/
_local.sh
.DS_Store

5
.vscode/settings.json vendored Normal file
View File

@@ -0,0 +1,5 @@
{
"cSpell.words": [
"dotfiles"
]
}

View File

@@ -7,23 +7,15 @@
git clone git@github.com:chenasraf/dotfiles.git ~/.dotfiles
```
3. Install plugins:
1. [zsh-autosuggestions](https://github.com/zsh-users/zsh-autosuggestions/blob/master/INSTALL.md#oh-my-zsh)
2. [zsh-syntax-highlighting](https://github.com/zsh-users/zsh-syntax-highlighting/blob/master/INSTALL.md#oh-my-zsh)
4. Install fzf:
```bash
brew install fzf
```
5. Replace entire contents of `~/.zshrc` with:
3. Replace entire contents of `~/.zshrc` with:
```bash
source "$HOME/.dotfiles/.zshrc"
```
6. Reload zsh:
4. In a new terminal, run install scripts:
```bash
source ~/.zshrc
home install
home reload
```

14
home.sh
View File

@@ -41,6 +41,20 @@ __home_do_install() {
rm -f $man_out_dir/$man_file
done
echo "Install oh-my-zsh plugins? (y/N) "
read reply
case "$reply" in
y*)
echo "Installing oh-my-zsh plugins..."
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
echo "Done"
;;
*) ;;
esac
__home_revert_dir
}