diff --git a/Brewfile-core b/Brewfile-core index 5a7f6e0..238212c 100644 --- a/Brewfile-core +++ b/Brewfile-core @@ -32,7 +32,6 @@ brew 'gti' # Language support brew 'go' -brew 'ruby-install' brew 'node' brew 'python', link: true, overwrite: true brew 'shellcheck' diff --git a/Brewfile-extra b/Brewfile-extra index 072be64..d496189 100644 --- a/Brewfile-extra +++ b/Brewfile-extra @@ -6,7 +6,6 @@ tap 'neovim/neovim' brew 'ack' brew 'adr-tools' brew 'aria2' -brew 'awscli' brew 'bash' brew 'bash-completion' brew 'bat' diff --git a/Brewfile-osx b/Brewfile-osx index 88d5b70..a13733c 100644 --- a/Brewfile-osx +++ b/Brewfile-osx @@ -5,6 +5,7 @@ brew 'fd' brew 'git-author' brew 'lastpass-cli' +brew 'awscli' brew 'chruby' brew 'vault' @@ -14,4 +15,7 @@ brew 'docker', overwrite: true, link: true brew 'postgresql@9.6', restart_service: true, link: true brew 'autojump' + +brew 'ruby-install' + brew 'universal-ctags/universal-ctags/universal-ctags', args: ['HEAD'] diff --git a/install-core.sh b/install-core.sh index 3ca756d..03b6a7c 100755 --- a/install-core.sh +++ b/install-core.sh @@ -19,6 +19,7 @@ else IS_OSX=false ./install-scripts/ubuntu.sh fi + # install brew and its packages source ./install-scripts/brew.sh if [ "$IS_OSX" = true ]; then @@ -27,8 +28,8 @@ else echo "Skipping Xcode installation for non OSX install" fi source ./install-scripts/brew-bundle.sh -echo "Installing ruby" # ruby setup +echo "Installing ruby" source ./install-scripts/ruby.sh source ./install-scripts/bundler.sh echo "Installing databases" diff --git a/install-scripts/brew.sh b/install-scripts/brew.sh index 68f2fb4..44eabe9 100755 --- a/install-scripts/brew.sh +++ b/install-scripts/brew.sh @@ -6,7 +6,7 @@ set -e function install_brew { if ! which brew > /dev/null ; then echo "Installing Homebrew" - /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" \ + /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" \ /dev/null + then + curl -LO https://github.com/sharkdp/fd/releases/download/v8.2.1/fd_8.2.1_amd64.deb + sudo dpkg -i fd_8.2.1_amd64.deb + fi + + if ! command -v ripgrep &> /dev/null + then + curl -LO https://github.com/BurntSushi/ripgrep/releases/download/12.1.1/ripgrep_12.1.1_amd64.deb + sudo dpkg -i ripgrep_12.1.1_amd64.deb + fi + + + if ! command -v ruby-install &>/dev/null + then + wget -O ruby-install-0.8.1.tar.gz https://github.com/postmodern/ruby-install/archive/v0.8.1.tar.gz + tar -xzvf ruby-install-0.8.1.tar.gz + cd ruby-install-0.8.1/ + sudo make install + fi + + + wget http://es.archive.ubuntu.com/ubuntu/pool/main/libf/libffi/libffi7_3.3-4_amd64.deb + sudo dpkg -i libffi7_3.3-4_amd64.deb + + wget -O chruby-0.3.9.tar.gz https://github.com/postmodern/chruby/archive/v0.3.9.tar.gz tar -xzvf chruby-0.3.9.tar.gz cd chruby-0.3.9/