fix(install_apps): improve neovim installing function
This commit is contained in:
parent
3dbfca855d
commit
928e7001f3
1 changed files with 6 additions and 5 deletions
|
@ -1,17 +1,18 @@
|
||||||
function display_menu {
|
function display_menu {
|
||||||
echo "Select applications to install:"
|
echo "Select applications to install:"
|
||||||
echo "1. All of the following"
|
echo "1. All of the following"
|
||||||
echo "2. Neovim (stable)"
|
echo "2. Neovim (stable, linux-x86_64)"
|
||||||
echo "0. Exit"
|
echo "0. Exit"
|
||||||
echo -n "Enter your choice (0-2): "
|
echo -n "Enter your choice (0-2): "
|
||||||
}
|
}
|
||||||
|
|
||||||
# installs stable nvim
|
# updates stable nvim
|
||||||
function install_neovim {
|
function install_neovim {
|
||||||
wget --output-document ~/nvim.tar.gz https://github.com/neovim/neovim/releases/download/stable/nvim-linux-x86_64.tar.gz > /dev/null 2>&1
|
wget --output-document ~/nvim.tar.gz https://github.com/neovim/neovim/releases/download/stable/nvim-linux-x86_64.tar.gz > /dev/null 2>&1
|
||||||
tar xvf ~/nvim.tar.gz > /dev/null
|
tar xvf ~/nvim.tar.gz -C ~/ > /dev/null 2>&1
|
||||||
mv nvim-linux-x86_64 nvim
|
rm -rf ~/nvim
|
||||||
rm nvim.tar.gz
|
mv ~/nvim-linux-x86_64 ~/nvim
|
||||||
|
rm ~/nvim.tar.gz
|
||||||
}
|
}
|
||||||
|
|
||||||
# Main Logic
|
# Main Logic
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue