mirror of
https://github.com/ViViDboarder/shoestrap.git
synced 2024-11-10 05:16:30 +00:00
ad53b375a2
This will download and add the latest Neovim appimage to the user bin dir, or, if appimage can't be run, will extract the filesystem and add it to ~/.local paths.
16 lines
367 B
Bash
Executable File
16 lines
367 B
Bash
Executable File
#! /bin/bash
|
|
|
|
set -e
|
|
|
|
cd "$TMP"
|
|
|
|
curl -LO https://github.com/neovim/neovim/releases/latest/download/nvim.appimage
|
|
chmod +x nvim.appimage
|
|
if ./nvim.appimage --version ;then
|
|
mv nvim.appimage ~/bin/nvim
|
|
else
|
|
./nvim.appimage --appimage-extract
|
|
mv ./squashfs-root ~/.local/lib/neovim_squashfs
|
|
ln -s ~/.local/lib/neovim_squashfs/AppRun ~/.local/bin/nvim
|
|
fi
|