install: run PlugInstall immediately
This commit is contained in:
parent
c066771ff7
commit
9012d57334
@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
|
|
||||||
# Check if Homebrew is already installed
|
# Check if Homebrew is already installed
|
||||||
if [ -x "$(command -v brew)" ]; then
|
if [ -x "$(command -v brew)" ]; then
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
|
|
||||||
DOTFILES="$HOME/dotfiles"
|
DOTFILES="$HOME/dotfiles"
|
||||||
|
|
||||||
|
18
install.sh
18
install.sh
@ -1,7 +1,10 @@
|
|||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
|
|
||||||
DOTFILES="$HOME/dotfiles"
|
DOTFILES="$HOME/dotfiles"
|
||||||
|
|
||||||
|
# Install symlinks
|
||||||
|
"$DOTFILES/install-symlinks.sh"
|
||||||
|
|
||||||
# Install plugin manager for Neovim, if it doesn't exist
|
# Install plugin manager for Neovim, if it doesn't exist
|
||||||
VIM_PLUG_SRC="https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim"
|
VIM_PLUG_SRC="https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim"
|
||||||
VIM_PLUG_DST="$HOME/.local/share/nvim/site/autoload/plug.vim"
|
VIM_PLUG_DST="$HOME/.local/share/nvim/site/autoload/plug.vim"
|
||||||
@ -10,13 +13,10 @@ if [ ! -f "$VIM_PLUG_DST" ]; then
|
|||||||
curl -fsSL -o "$VIM_PLUG_DST" --create-dirs "$VIM_PLUG_SRC"
|
curl -fsSL -o "$VIM_PLUG_DST" --create-dirs "$VIM_PLUG_SRC"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Add Homebrew-managed shells to system list
|
# Install plugins for Neovim
|
||||||
BREW_PREFIX=`brew --prefix`
|
nvim +PlugInstall +qall
|
||||||
grep -q "$BREW_PREFIX/bin/bash" /etc/shells || echo "$BREW_PREFIX/bin/bash" | sudo tee -a /etc/shells
|
|
||||||
grep -q "$BREW_PREFIX/bin/fish" /etc/shells || echo "$BREW_PREFIX/bin/fish" | sudo tee -a /etc/shells
|
|
||||||
|
|
||||||
# Make fish the default shell
|
# Make fish the default shell
|
||||||
sudo chsh -s "$BREW_PREFIX/bin/fish" `whoami`
|
BREW_PREFIX=$(brew --prefix)
|
||||||
|
grep -q "$BREW_PREFIX/bin/fish" /etc/shells || echo "$BREW_PREFIX/bin/fish" | sudo tee -a /etc/shells
|
||||||
# Install symlinks
|
sudo chsh -s "$BREW_PREFIX/bin/fish" $(whoami)
|
||||||
"$DOTFILES/install-symlinks.sh"
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user