add lazygit install script
This commit is contained in:
parent
efe22b134a
commit
625acf4080
@ -16,16 +16,20 @@ fi
|
||||
|
||||
# Install packages
|
||||
if [[ "$OS" == "macos" ]]; then
|
||||
brew install unzip wget curl gzip tar ruby go node python git cargo npm fzf
|
||||
brew install unzip wget curl gzip tar ruby go node python git cargo npm fzf lazygit
|
||||
elif [[ "$OS" == "debian" ]] || [[ "$OS" == "ubuntu" ]]; then
|
||||
sudo add-apt-repository ppa:neovim-ppa/unstable
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y unzip wget curl gzip tar ruby git cargo npm xclip fzf
|
||||
sudo apt-get install -y python3 python3-venv python3-pip nodejs neovim
|
||||
LAZYGIT_VERSION=$(curl -s "https://api.github.com/repos/jesseduffield/lazygit/releases/latest" | grep -Po '"tag_name": "v\K[^"]*')
|
||||
curl -Lo lazygit.tar.gz "https://github.com/jesseduffield/lazygit/releases/latest/download/lazygit_${LAZYGIT_VERSION}_Linux_x86_64.tar.gz"
|
||||
tar xf lazygit.tar.gz lazygit
|
||||
sudo install lazygit /usr/local/bin
|
||||
elif [[ "$OS" == "manjaro" ]]; then
|
||||
sudo pacman -Syu --noconfirm
|
||||
sudo pacman -S --noconfirm unzip wget curl gzip tar ruby git cargo npm
|
||||
sudo pacman -S --noconfirm python python-pip fzf
|
||||
sudo pacman -S --noconfirm python python-pip fzf lazygit
|
||||
sudo pacman -S --noconfirm go nodejs neovim
|
||||
fi
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
| hrsh7th/cmp-path | 补全路径 |
|
||||
| hrsh7th/cmp-buffer | 缓冲区内重复单词补全 |
|
||||
| hrsh7th/cmp-nvim-lsp | 补全与lsp的集成 |
|
||||
| kyazdani42/nvim-tree.lua | 文件查看器,不用多说 |
|
||||
| kyazdani42/neo-tree.lua | 文件查看器,不用多说,neo-tree的兼容性更好 |
|
||||
| numToStr/Comment.nvim | 强大的注释插件 |
|
||||
| windwp/nvim-autopairs | 括号自动补全 |
|
||||
| ahmedkhalf/project.nvim | 出色的项目管理工具,可与telescope集成 |
|
||||
|
Loading…
Reference in New Issue
Block a user