mirror of
https://github.com/jdhao/nvim-config.git
synced 2025-06-08 14:14:33 +02:00
20 lines
426 B
Bash
20 lines
426 B
Bash
# This script is used to update Nvim on macOS
|
|
#!/bin/bash
|
|
set -eux
|
|
|
|
wget https://github.com/neovim/neovim/releases/download/v0.6.0/nvim-macos.tar.gz
|
|
|
|
if [[ ! -d "$HOME/tools/" ]]; then
|
|
mkdir -p "$HOME/tools"
|
|
fi
|
|
|
|
# Delete existing nvim installation.
|
|
if [[ -d "$HOME/tools/nvim-osx64" ]]; then
|
|
rm -rf "$HOME/tools/nvim-osx64"
|
|
fi
|
|
|
|
# Extract the tar ball
|
|
tar zxvf nvim-macos.tar.gz -C "$HOME/tools"
|
|
|
|
rm nvim-macos.tar.gz
|