adding support for Sabayon and adding mercurial to installed packages
This commit is contained in:
parent
3531d348a5
commit
ded86a5c50
13
envsetup.sh
13
envsetup.sh
|
@ -29,20 +29,23 @@ distrocheck() {
|
||||||
hash pacman &>/dev/null && userdistro="Arch" # For Arch Linux
|
hash pacman &>/dev/null && userdistro="Arch" # For Arch Linux
|
||||||
hash port &>/dev/null && userdistro="OSX" # For OSX, make sure the port binary is in your PATH first.
|
hash port &>/dev/null && userdistro="OSX" # For OSX, make sure the port binary is in your PATH first.
|
||||||
hash pkg_add &>/dev/null && userdistro="FreeBSD" # For FreeBSD
|
hash pkg_add &>/dev/null && userdistro="FreeBSD" # For FreeBSD
|
||||||
|
hash equo &>/dev/null && userdistro="Sabayon" # For Sabayon
|
||||||
}
|
}
|
||||||
|
|
||||||
installpackages() {
|
installpackages() {
|
||||||
if [[ "$userdistro" == "Debian" ]]; then
|
if [[ "$userdistro" == "Debian" ]]; then
|
||||||
sudo apt-get install --assume-yes vim zsh tmux git subversion most python-pip
|
sudo apt-get install --assume-yes vim zsh tmux git subversion mercurial most python-pip
|
||||||
elif [[ "$userdistro" == "Fedora" ]]; then
|
elif [[ "$userdistro" == "Fedora" ]]; then
|
||||||
sudo yum install -y vim zsh tmux git subversion most python-pip
|
sudo yum install -y vim zsh tmux git subversion mercurial most python-pip
|
||||||
elif [[ "$userdistro" == "Arch" ]]; then
|
elif [[ "$userdistro" == "Arch" ]]; then
|
||||||
sudo pacman --no-confirm -S vim zsh tmux git subversion most python-pip
|
sudo pacman --no-confirm -S vim zsh tmux git mercurial subversion most python-pip
|
||||||
elif [[ "$userdistro" == "OSX" ]]; then
|
elif [[ "$userdistro" == "OSX" ]]; then
|
||||||
sudo port install vim zsh tmux git-core git-extras subversion most
|
sudo port install vim zsh tmux git-core git-extras mercurial subversion most
|
||||||
#echo "export PATH=/opt/local/bin:/opt/local/sbin:$PATH" >> ~/.zshenv # This adds the port binary path, so that zsh can use it after, commented out by default.
|
#echo "export PATH=/opt/local/bin:/opt/local/sbin:$PATH" >> ~/.zshenv # This adds the port binary path, so that zsh can use it after, commented out by default.
|
||||||
elif [[ "$userdistro" == "FreeBSD" && $(uname -s) == "FreeBSD" ]]; then
|
elif [[ "$userdistro" == "FreeBSD" && $(uname -s) == "FreeBSD" ]]; then
|
||||||
sudo pkg_add -r vim zsh tmux git subversion most
|
sudo pkg_add -r vim zsh tmux git subversion mercurial most py27-pip
|
||||||
|
elif [[ "$userdistro" == "Sabayon" ]]; then
|
||||||
|
sudo equo install vim zsh tmux git subversion mercurial most python-pip
|
||||||
else
|
else
|
||||||
die 'Your distro does not have a package manager supported by this script, exiting!'
|
die 'Your distro does not have a package manager supported by this script, exiting!'
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue