diff options
author | André Sá <[email protected]> | 2021-04-16 02:24:01 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2021-04-15 21:24:01 -0400 |
commit | 4a797b59bdafaca916bb228b5c9c0ef3c332f074 (patch) | |
tree | 67659eaa8f4a553abc11fa718e4c3e1724e71571 | |
parent | 3677277a0959899793d18e979ac60d803352c553 (diff) |
Update install to support Fedora (#259)
-rwxr-xr-x | utils/installer/install.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/utils/installer/install.sh b/utils/installer/install.sh index f8d140b7..796eddb1 100755 --- a/utils/installer/install.sh +++ b/utils/installer/install.sh @@ -25,11 +25,17 @@ installnodearch() { sudo pacman -S npm } +installnodefedora() { + sudo dnf install -y nodejs + sudo dnf install -y npm +} + installnode() { echo "Installing node..." [ "$(uname)" == "Darwin" ] && installnodemac [ -n "$(uname -a | grep Ubuntu)" ] && installnodeubuntu [ -f "/etc/arch-release" ] && installnodearch + [ -f "/etc/fedora-release" ] && installnodefedora [ "$(expr substr $(uname -s) 1 10)" == "MINGW64_NT" ] && echo "Windows not currently supported" sudo npm i -g neovim } @@ -48,11 +54,16 @@ installpiponarch() { pacman -S python-pip } +installpiponfedora() { + sudo dnf install -y pip >/dev/nul +} + installpip() { echo "Installing pip..." [ "$(uname)" == "Darwin" ] && installpiponmac [ -n "$(uname -a | grep Ubuntu)" ] && installpiponubuntu [ -f "/etc/arch-release" ] && installpiponarch + [ -f "/etc/fedora-release" ] && installpiponfedora [ "$(expr substr $(uname -s) 1 10)" == "MINGW64_NT" ] && echo "Windows not currently supported" } @@ -115,10 +126,17 @@ installonarch() { npm install -g tree-sitter-cli } +installonfedora() { + sudo dnf groupinstall "X Software Development" + sudo dnf install -y fzf ripgrep ranger + pip3 install wheel ueberzug +} + installextrapackages() { [ "$(uname)" == "Darwin" ] && installonmac [ -n "$(uname -a | grep Ubuntu)" ] && installonubuntu [ -f "/etc/arch-release" ] && installonarch + [ -f "/etc/fedora-release" ] && installonfedora [ "$(expr substr $(uname -s) 1 10)" == "MINGW64_NT" ] && echo "Windows not currently supported" } |