feat: modify install nvim
This commit is contained in:
@@ -1,16 +0,0 @@
|
|||||||
#!bin/sh
|
|
||||||
#git clone https://github.com/hilaily/.dotfile.git ~/.dotfile
|
|
||||||
|
|
||||||
# 判断 zsh 是否安装
|
|
||||||
#sudo yum update && sudo yum -y install zsh
|
|
||||||
|
|
||||||
# 判断 oh-my-zsh 是否安装
|
|
||||||
if [ ! -d "$HOME/.oh-my-zsh" ];then
|
|
||||||
export ZSH=$HOME/.oh-my-zsh
|
|
||||||
sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
|
|
||||||
fi
|
|
||||||
ln -sf ~/.dotfile/.zshrc ~/
|
|
||||||
ln -sf ~/.dotfile/laily.zsh-theme ~/.oh-my-zsh/themes/
|
|
||||||
ln -sf ~/.dotfile/.tmux.conf ~/
|
|
||||||
ln -sf ~/.dotfile/git/.gitconfig ~/.gitconfig
|
|
||||||
|
|
||||||
+23
-3
@@ -1,4 +1,24 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
# install neovim
|
# install neovim
|
||||||
cd /usr/local
|
os_arch=$(uname -s)-$(uname -m)
|
||||||
wget https://github.com/neovim/neovim/releases/download/stable/nvim-macos.tar.gz
|
|
||||||
tar zxvf nvim-macos.tar.gz
|
case $os_arch in
|
||||||
|
"Darwin-x86_64")
|
||||||
|
cd /usr/local
|
||||||
|
wget https://github.com/neovim/neovim/releases/download/stable/nvim-macos.tar.gz
|
||||||
|
tar zxvf nvim-macos.tar.gz
|
||||||
|
;;
|
||||||
|
"Linux-x86_64"|"Linux-arm64")
|
||||||
|
cd /tmp
|
||||||
|
rm -rf nvim-linux64.tar.gz
|
||||||
|
wget https://github.com/neovim/neovim/releases/download/v0.10.2/nvim-linux64.tar.gz
|
||||||
|
tar zxf nvim-linux64.tar.gz
|
||||||
|
sudo mv nvim-linux64 /usr/local/nvim
|
||||||
|
sudo ln -s /usr/local/nvim/bin/nvim /usr/local/bin/vim
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user