Setup update
Signed-off-by: TiagoRG <tiago.rgarcia@ua.pt>
This commit is contained in:
parent
cb2151e6fd
commit
76ebe215a2
|
@ -21,3 +21,5 @@ _darcs
|
||||||
^/LICENSE.*
|
^/LICENSE.*
|
||||||
^/COPYING
|
^/COPYING
|
||||||
# -------------------------
|
# -------------------------
|
||||||
|
|
||||||
|
setup.sh
|
||||||
|
|
16
setup.sh
16
setup.sh
|
@ -12,18 +12,15 @@ if [ "$(pwd)" != "$HOME/.dotfiles" ]; then
|
||||||
cd "$HOME/.dotfiles" || exit
|
cd "$HOME/.dotfiles" || exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Setup stow
|
|
||||||
echo -e "\e[32m$1\e[0mSetting up stow"
|
|
||||||
stow -t "$HOME" -d "$HOME/.dotfiles" dotfiles
|
|
||||||
|
|
||||||
# Setup Vim
|
# Setup Vim
|
||||||
echo -e "\e[32m$1\e[0mSetting up Vim"
|
echo -e "\e[32m$1\e[0mSetting up Vim"
|
||||||
echo -e "\e[32m$1\e[0mInstalling OneDark theme"
|
echo -e "\e[32m$1\e[0mInstalling OneDark theme"
|
||||||
curl -fLo "$HOME/.vim/colors/onedark.vim" --create-dirs "https://raw.githubusercontent.com/joshdick/onedark.vim/master/colors/onedark.vim"
|
curl -fLo "$HOME/.dotfiles/.vim/colors/onedark.vim" --create-dirs "https://raw.githubusercontent.com/joshdick/onedark.vim/master/colors/onedark.vim"
|
||||||
curl -fLo "$HOME/.vim/autoload/onedark.vim" --create-dirs "https://raw.githubusercontent.com/joshdick/onedark.vim/master/autoload/onedark.vim"
|
curl -fLo "$HOME/.dotfiles/.vim/autoload/onedark.vim" --create-dirs "https://raw.githubusercontent.com/joshdick/onedark.vim/master/autoload/onedark.vim"
|
||||||
echo -e "\e[32m$1\e[0mInstalling Copilot"
|
echo -e "\e[32m$1\e[0mInstalling Copilot"
|
||||||
git clone "https://github.com/github/copilot.vim.git" "$HOME/.vim/pack/github/start/copilot.vim"
|
git clone "https://github.com/github/copilot.vim.git" "$HOME/.dotfiles/.vim/pack/github/start/copilot.vim"
|
||||||
echo -e "\e[32m$1\e[0mSetting up Copilot"
|
echo -e "\e[32m$1\e[0mSetting up Copilot"
|
||||||
|
stow -d "$HOME/.dotfiles" "$HOME"
|
||||||
/bin/vim -c 'Copilot setup' -c 'qa!'
|
/bin/vim -c 'Copilot setup' -c 'qa!'
|
||||||
|
|
||||||
# Setup Neovim
|
# Setup Neovim
|
||||||
|
@ -32,6 +29,7 @@ echo -e "\e[32m$1\e[0mInstalling Packer"
|
||||||
git clone --depth 1 "https://github.com/wbthomason/packer.nvim" "$HOME/.local/share/nvim/site/pack/packer/start/packer.nvim"
|
git clone --depth 1 "https://github.com/wbthomason/packer.nvim" "$HOME/.local/share/nvim/site/pack/packer/start/packer.nvim"
|
||||||
cd "$HOME/.dotfiles/.config/nvim" || exit
|
cd "$HOME/.dotfiles/.config/nvim" || exit
|
||||||
echo -e "\e[32m$1\e[0mInstalling Plugins"
|
echo -e "\e[32m$1\e[0mInstalling Plugins"
|
||||||
|
stow -d "$HOME/.dotfiles" "$HOME"
|
||||||
/bin/nvim --headless -c 'source lua/tiagorg/packer.lua' -c 'PackerSync' -c 'qa!'
|
/bin/nvim --headless -c 'source lua/tiagorg/packer.lua' -c 'PackerSync' -c 'qa!'
|
||||||
cd "$OLDPWD" || exit
|
cd "$OLDPWD" || exit
|
||||||
|
|
||||||
|
@ -39,7 +37,7 @@ cd "$OLDPWD" || exit
|
||||||
echo -e "\e[32m$1\e[0mSetting up zsh"
|
echo -e "\e[32m$1\e[0mSetting up zsh"
|
||||||
chsh -s /bin/zsh
|
chsh -s /bin/zsh
|
||||||
echo -e "\e[32m$1\e[0mInstalling zsh-autosuggestions"
|
echo -e "\e[32m$1\e[0mInstalling zsh-autosuggestions"
|
||||||
git clone "https://github.com/zsh-users/zsh-autosuggestions.git" "$HOME/.zsh/zsh-autosuggestions"
|
git clone "https://github.com/zsh-users/zsh-autosuggestions.git" "$HOME/.dotfiles/.zsh/zsh-autosuggestions"
|
||||||
echo -e "\e[32m$1\e[0mInstalling zsh-syntax-highlighting"
|
echo -e "\e[32m$1\e[0mInstalling zsh-syntax-highlighting"
|
||||||
git clone "https://github.com/zsh-users/zsh-syntax-highlighting.git" "$HOME/.zsh/zsh-syntax-highlighting"
|
git clone "https://github.com/zsh-users/zsh-syntax-highlighting.git" "$HOME/.dotfiles/.zsh/zsh-syntax-highlighting"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue