Skip to content

Commit

Permalink
apt,dnf install neovim from packages instead of from source
Browse files Browse the repository at this point in the history
  • Loading branch information
linrongbin16 committed Aug 22, 2022
1 parent 9d1a621 commit 3ec7bc6
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 27 deletions.
18 changes: 11 additions & 7 deletions install/apt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,17 @@ $INSTALL/install_or_skip.sh "sudo apt-get install -y cmake" "cmake"
$INSTALL/install_or_skip.sh "sudo apt-get install -y xclip" "xclip"
$INSTALL/install_or_skip.sh "sudo apt-get install -y wl-clipboard" "wl-copy"

# neovim
if ! type "nvim" >/dev/null 2>&1; then
$INSTALL/msg.sh "install 'nvim' from ppa:neovim-ppa/stable..."
sudo apt-get install -y software-properties-common
sudo add-apt-repository ppa:neovim-ppa/stable
sudo apt-get update
sudo apt-get install -y neovim
else
$INSTALL/msg.sh "'nvim' already exist, skip..."
fi

# python3
$INSTALL/install_or_skip.sh "sudo apt-get install -y python3 python3-dev python3-venv python3-pip python3-docutils" "python3"
$INSTALL/install_or_skip.sh "sudo apt-get install -y python3 python3-dev python3-venv python3-pip python3-docutils" "pip3"
Expand All @@ -30,13 +41,6 @@ else
$INSTALL/msg.sh "'node' already exist, skip..."
fi

# neovim
if ! type "nvim" >/dev/null 2>&1; then
$INSTALL/install_neovim.sh
else
$INSTALL/msg.sh "'nvim' already exist, skip..."
fi

# ctags
if ! type "ctags" >/dev/null 2>&1; then
sudo apt-get install -y libseccomp-dev
Expand Down
8 changes: 1 addition & 7 deletions install/dnf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ sudo dnf check-update
$INSTALL/install_or_skip.sh "sudo dnf group install -y \"Development Tools\"" "gcc" "g++"
$INSTALL/install_or_skip.sh "sudo dnf install -y vim" "vim"
$INSTALL/install_or_skip.sh "sudo dnf install -y gvim" "gvim"
$INSTALL/install_or_skip.sh "sudo dnf install -y neovim" "nvim"
$INSTALL/install_or_skip.sh "sudo dnf install -y curl" "curl"
$INSTALL/install_or_skip.sh "sudo dnf install -y wget" "wget"
$INSTALL/install_or_skip.sh "sudo dnf install -y autoconf" "autoconf"
Expand All @@ -23,13 +24,6 @@ $INSTALL/install_or_skip.sh "sudo dnf install -y python3 python3-devel python3-p
# nodejs
$INSTALL/install_or_skip.sh "sudo dnf install -y nodejs npm" "node"

# neovim
if ! type "nvim" >/dev/null 2>&1; then
$INSTALL/install_neovim.sh
else
$INSTALL/msg.sh "'nvim' already exist, skip..."
fi

# ctags
if ! type "ctags" >/dev/null 2>&1; then
sudo dnf install -y libseccomp-devel
Expand Down
13 changes: 0 additions & 13 deletions install/install_neovim.sh

This file was deleted.

0 comments on commit 3ec7bc6

Please sign in to comment.