mirror of
https://github.com/chenasraf/dotfiles.git
synced 2026-05-18 01:29:06 +00:00
add oh my zsh plugins to install cmd
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,4 +1,3 @@
|
||||
man/
|
||||
_local.sh
|
||||
.DS_Store
|
||||
|
||||
|
||||
5
.vscode/settings.json
vendored
Normal file
5
.vscode/settings.json
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"cSpell.words": [
|
||||
"dotfiles"
|
||||
]
|
||||
}
|
||||
16
README.md
16
README.md
@@ -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
14
home.sh
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user