From ded86a5c50b72e31a7c8670d80e5259338072031 Mon Sep 17 00:00:00 2001 From: staticsafe Date: Sun, 10 Jun 2012 17:56:31 -0400 Subject: [PATCH] adding support for Sabayon and adding mercurial to installed packages --- envsetup.sh | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/envsetup.sh b/envsetup.sh index bb63e7f..0ba9575 100755 --- a/envsetup.sh +++ b/envsetup.sh @@ -29,20 +29,23 @@ distrocheck() { 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 pkg_add &>/dev/null && userdistro="FreeBSD" # For FreeBSD + hash equo &>/dev/null && userdistro="Sabayon" # For Sabayon } installpackages() { 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 - 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 - 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 - 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. 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 die 'Your distro does not have a package manager supported by this script, exiting!' fi