Skip to content

Latest commit

 

History

History
149 lines (103 loc) · 2.48 KB

README.md

File metadata and controls

149 lines (103 loc) · 2.48 KB

Bootstrap

Thanks to @creack for this amazing repo :)

Dependencies

  • git
  • curl
  • make

Dotfiles

quickstart

git clone https://github.com/qnlbnsl/dotfiles ~/.dotfiles
cd ~/.dotfiles
chmod +x ubuntu.sh
./ubuntu.sh

Running make

git clone https://github.com/qnlbnsl/dotfiles ~/.dotfiles
cd ~/.dotfiles
make -j

Note that the Makefile manages:

  • go
  • oh-my-zsh
  • nvm
  • docker
  • zplug
  • powerlevel10k

Configurations

Linux Specific

Set default shell

chsh -s /usr/bin/zsh $(whoami)

Setup sudo

As root:

apt-get update && apt-get install -y sudo
user=qnlbnsl
echo "$user ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers.d/90-primary-user

Install Docker

make docker

OSX Specific

Whitelist Brew's zsh / set default shell

sudo sh -c 'echo /usr/local/bin/zsh >> /etc/shells'
chsh -s /usr/local/bin/zsh $(whoami)

Install Homebrew

Note that Apple announced they will remove ruby from OSX by default. Will need to update how to install brew.

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Install Docker Manually

brew cask install virtualbox
brew install docker docker-machine docker-compose
docker-machine create --driver=virtualbox --virtualbox-disk-size=200000 --virtualbox-cpu-count=4 default
eval "$(docker-machine env)"
docker ps

Set proper hostname

  1. System Preferences -> Sharing -> Computer's Name

Update keyboard settings

  1. System Preferences -> Keyboard -> Key Repeat -> Set to Fast
  2. System Preferences -> Keyboard -> Delay Until Repeat -> Set to Short

Update trackpad settings

  1. System Preferences -> Trackpad -> Tap to click -> Enable
  2. System Preferences -> Trackpad -> Tracking speed -> Set to Fast

Set proper screen resolution

  1. System Preferences -> Displays -> Resolution: Scaled -> More Space

Install Packages

Make sure to have all of this installed. Some might be installed by default.

Dependencies:

  • git
  • curl
  • make

Common tools:

  • tmux
  • emacs (emacs-nox on linux)
  • gpg
  • ssh
  • python / pip
    • powerline-status
    • awscli
  • most
  • zsh (on OSX, install it from brew to have newer version)
  • remake
  • ntpdate

Usage

Update Go

# Go itself.
(cd ~/.dotfiles && echo "1.13.1" > versions/go && make)
go version

# Go tools (golint, govet, guru, etc).
go get golang.org/x/tools/cmd/...

# Linter
(cd ~/.dotfiles && echo "1.19.1" > versions/golangci-lint && make)
golangci-lint --version