Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add fedora installation support #3

Merged
merged 2 commits into from
Apr 5, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions src/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,18 @@ install_brew() {
install_coc_plugins
}

install_dnf() {
sudo dnf install -y fzf ripgrep
sudo dnf install -y clang clang-devel
sudo dnf install -y cmake make g++
sudo dnf install -y curl

install_ccls_from_source
install_nodejs_lts
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

是因为Fedora的dnf安装的node版本不足12.x吗?

install_vimrc
install_coc_plugins
}

install_zypper() {
sudo zypper in --no-confirm fzf ripgrep ccls nodejs

Expand Down Expand Up @@ -231,6 +243,8 @@ elif [ $distro == "ManjaroLinux" ]; then
install_pacman
elif [ $distro == "MacOS" ]; then
install_brew
elif [ $distro == "fedora" ]; then
install_dnf
elif [ $distro == "openSUSE" ]; then
install_zypper
else
Expand Down