Git Product home page Git Product logo

dotfiles's Introduction

Install Homebrew

xcode-select --install

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

Install ZSH

brew install zsh
sudo sh -c "echo $(which zsh) >> /etc/shells"
chsh -s $(which zsh)

Install packages

brew install git
brew install hub
brew install ripgrep
brew install ruby
brew install vim
brew install wget

brew install postgresql
brew services start postgresql

Install applications

brew install --cask 1password
brew install --cask adobe-acrobat-reader
brew install --cask alfred
brew install --cask caffeine
brew install --cask dash
brew install --cask dropbox
brew install --cask firefox
brew install --cask flux
brew install --cask google-chrome
brew install --cask slack
brew install --cask sublime-merge
brew install --cask sublime-text
  • Sophos Antivirus from website
  • Moom from App Store (for license)

Setup SSH Key

https://help.github.com/en/github/authenticating-to-github/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent

Install Dotfiles

git clone [email protected]:merhard/dotfiles.git ~/dotfiles

~/dotfiles/install.sh

Install ASDF

https://asdf-vm.com/guide/getting-started.html

Install Node.js

asdf plugin add nodejs https://github.com/asdf-vm/asdf-nodejs.git

brew install gpg
brew install gawk

export GNUPGHOME="$ASDF_DIR/keyrings/nodejs" &&
  mkdir -p "$GNUPGHOME" &&
  chmod 0700 "$GNUPGHOME"
bash "$ASDF_DIR/plugins/nodejs/bin/import-release-team-keyring"

NODEJS_VERSION=$(asdf list all nodejs | tail -1) &&
  asdf install nodejs $NODEJS_VERSION &&
  asdf global nodejs $NODEJS_VERSION

npm install -g npm

Install Elixir

asdf plugin add elixir https://github.com/asdf-vm/asdf-elixir.git

brew install unzip

ELIXIR_VERSION=$(asdf list all elixir | grep -v "^[a-z]" | tail -1) &&
  asdf install elixir $ELIXIR_VERSION &&
  asdf global elixir $ELIXIR_VERSION

mix local.hex --force
mix local.rebar --force

Install Erlang

(Installed after Elixir so I know which version to get) https://hexdocs.pm/elixir/compatibility-and-deprecations.html#compatibility-between-elixir-and-erlang-otp

asdf plugin add erlang https://github.com/asdf-vm/asdf-erlang.git

brew install autoconf
brew install [email protected]
brew install unixodbc
brew install wxwidgets

KERL_HOME="$ASDF_DIR/plugins/erlang/kerl-home" &&
  mkdir "$KERL_HOME" &&
  echo "KERL_CONFIGURE_OPTIONS=\"--disable-debug --without-javac --with-ssl=$(brew --prefix [email protected])\"" > "$KERL_HOME/.kerlrc"

ERLANG_MAJOR_VERSION=$(asdf list elixir | ruby -e 'puts ARGF.read.split("otp-").last') &&
  ERLANG_VERSION=$(asdf list all erlang | grep "^$ERLANG_MAJOR_VERSION" | tail -1) &&
  asdf install erlang $ERLANG_VERSION &&
  asdf global erlang $ERLANG_VERSION

Install Ruby

asdf plugin add ruby https://github.com/asdf-vm/asdf-ruby.git

brew install [email protected]
brew install readline

RUBY_VERSION=$(asdf list all ruby | grep -v "[a-z]" | tail -1) &&
  RUBY_CONFIGURE_OPTS="--with-openssl-dir=$(brew --prefix [email protected])" \
  asdf install ruby $RUBY_VERSION &&
  asdf global ruby $RUBY_VERSION

bundle config --global jobs $(( $(sysctl -n hw.ncpu) - 1 ))

Edit MacOS Settings

# Disable smart quotes
defaults write NSGlobalDomain NSAutomaticQuoteSubstitutionEnabled -bool false

# Disable smart dashes
defaults write NSGlobalDomain NSAutomaticDashSubstitutionEnabled -bool false

# Show hidden files in Finder
defaults write com.apple.finder AppleShowAllFiles -bool true && killall Finder

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.