-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathauto_install_mac.sh
54 lines (35 loc) · 1.44 KB
/
auto_install_mac.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
cd $HOME
mkdir .macos
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
rm .zshrc
ln -s $HOME/.rc/zshrc $HOME/.zshrc
mkdir .zsh
ln -s $HOME/.rc/zshalias $HOME/.zsh/alias.zsh
ln -s $HOME/.rc/zshflags $HOME/.zsh/flags.zsh
ln -s $HOME/.rc/zshfunctions $HOME/.zsh/functions.zsh
ln -s $HOME/.rc/zshvar $HOME/.zsh/variables.zsh
ln -s $HOME/.rc/d_d.zsh-theme $HOME/.oh-my-zsh/custom/themes/d_d.zsh-theme
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
# Installing NEOVIM
if [[ $(command -v nvim) ]]; then
echo "Neovim is already installed" else
echo "Downloading & installing neovim"
if [[ $(command -v brew) ]]; then
echo "Homebrew is already installed"
else
echo "Installing Homebrew..."
$(/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)")
fi
echo "Installing neovim"
brew install neovim
fi
pip3 install neovim
mkdir .config
mkdir .config/nvim
ln -s $HOME/.rc/vimrc $HOME/.config/nvim/init.vim
source .zshrc
# Install vim-plug for nvim
curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
# Installing vim plugins
v +PlugInstall