diff options
| author | yibaba <[email protected]> | 2021-06-18 21:43:30 +0000 | 
|---|---|---|
| committer | GitHub <[email protected]> | 2021-06-18 17:43:30 -0400 | 
| commit | c1600fbfaad7172ec057cb94b4c54c4773ab5376 (patch) | |
| tree | 33055b25a73bba24421bc2ca764aa81ac9f6633a /utils/installer | |
| parent | 23cfaa7328421b5a7aafafe196bb32ebc6cf1b07 (diff) | |
Modifying installer.sh (and README.md) to be suited for Gentoo (#495)
* Modifying installer.sh to be suited for Gentoo
* Change README.md to be more helpful for Gentoo instalations
Diffstat (limited to 'utils/installer')
| -rwxr-xr-x | utils/installer/install.sh | 30 | 
1 files changed, 29 insertions, 1 deletions
| diff --git a/utils/installer/install.sh b/utils/installer/install.sh index 494ed5c6..10373fc3 100755 --- a/utils/installer/install.sh +++ b/utils/installer/install.sh @@ -30,6 +30,16 @@ installnodefedora() {      sudo dnf install -y npm  } +installnodegentoo() { +	echo "Printing current node status..." +	emerge -pqv net-libs/nodejs +	echo "Make sure the npm USE flag is enabled for net-libs/nodejs" +	echo "If it isn't enabled, would you like to enable it with flaggie? (Y/N)" +	read answer +        [ "$answer" != "${answer#[Yy]}" ] && sudo flaggie net-libs/nodejs +npm +	sudo emerge -avnN net-libs/nodejs +} +  installnode() {  	echo "Installing node..."  	[ "$(uname)" == "Darwin" ] && installnodemac @@ -37,6 +47,7 @@ installnode() {  	[ -f "/etc/arch-release" ] && installnodearch  	[ -f "/etc/artix-release" ] && installnodearch  	[ -f "/etc/fedora-release" ] && installnodefedora +	[ -f "/etc/gentoo-release" ] && installnodegentoo  	[ "$(expr substr $(uname -s) 1 10)" == "MINGW64_NT" ] && echo "Windows not currently supported"  	sudo npm i -g neovim  } @@ -59,18 +70,28 @@ installpiponfedora() {  	sudo dnf install -y pip >/dev/nul  } +installpipongentoo() { +	sudo emerge -avn dev-python/pip +} +  installpip() {  	echo "Installing pip..."  	[ "$(uname)" == "Darwin" ] && installpiponmac  	[ -n "$(cat /etc/os-release | grep Ubuntu)" ] && installpiponubuntu  	[ -f "/etc/arch-release" ] && installpiponarch  	[ -f "/etc/fedora-release" ] && installpiponfedora +	[ -f "/etc/gentoo-release" ] && installpipongentoo  	[ "$(expr substr $(uname -s) 1 10)" == "MINGW64_NT" ] && echo "Windows not currently supported"  }  installpynvim() {  	echo "Installing pynvim..." -	pip3 install pynvim --user +	if [ -f "/etc/gentoo-release" ]; then +		echo "Installing using Portage" +		sudo emerge -avn dev-python/pynvim +	else +		pip3 install pynvim --user +	fi  }  installpacker() { @@ -133,12 +154,19 @@ installonfedora() {      pip3 install wheel ueberzug  } +installongentoo() { +	sudo emerge -avn sys-apps/ripgrep app-shells/fzf app-misc/ranger dev-python/neovim-remote virtual/jpeg sys-libs/zlib +	pipinstallueberzug +	npm install -g tree-sitter-cli +} +  installextrapackages() {  	[ "$(uname)" == "Darwin" ] && installonmac  	[ -n "$(cat /etc/os-release | grep Ubuntu)" ] && installonubuntu  	[ -f "/etc/arch-release" ] && installonarch  	[ -f "/etc/artix-release" ] && installonarch  	[ -f "/etc/fedora-release" ] && installonfedora +	[ -f "/etc/gentoo-release" ] && installongentoo  	[ "$(expr substr $(uname -s) 1 10)" == "MINGW64_NT" ] && echo "Windows not currently supported"  } | 
