Coder Social home page Coder Social logo

dotfiles-2's Introduction

ahmet’s macOS Setup

Download Xcode

For google, go/xcode. This will take a lot of time, so start with this.

OS Settings

TODO: find defaults write commands for these.

  • Invert Trackpad Scroll Direction to non-natural.

  • Show battery percentage on menu bar.

  • Show date on menu bar.

  • Keyboard → Text → Uncheck autocorrect and such settings.

  • Remove useless items from the Dock.

  • Move Dock to right, make it smaller.

  • Drag Downloads folder next to the Trash on the Dock.

    • Right Click → Sort by Date Added.
  • Show Path Bar on Finder.

  • Move $HOME folder to Finder sidebar.

  • Set shortcuts

    • Accessibility: Invert colors: Cmd+Shift+I
    • Screenshots:
      • Uncheck all
      • Save selected area to file: Cmd+Shift+4
      • Save selected area to clipboard: Cmd+Shift+2
  • Hot Corners:

    • Top-left: Put Display to Sleep
    • Clear other corners

Tweaks:

defaults write NSGlobalDomain AppleShowScrollBars -string "Always" # show scrollbar always
defaults write com.apple.finder AppleShowAllFiles true   # Show hidden files
defaults write com.apple.finder ShowStatusBar -bool true # Show Finder statusbar

# Default Finder location is the home folder
defaults write com.apple.finder NewWindowTarget -string "PfLo" && \
  defaults write com.apple.finder NewWindowTargetPath -string "file://${HOME}"

chflags nohidden ~/Library                               # Unhide ~/Library

# disable smart quotes and dashes
defaults write 'Apple Global Domain' NSAutomaticDashSubstitutionEnabled 0
defaults write 'Apple Global Domain' NSAutomaticQuoteSubstitutionEnabled 0
defaults write 'Apple Global Domain' NSAutomaticPeriodSubstitutionEnabled 0

Shell

Install oh-my-zsh: https://github.com/robbyrussell/oh-my-zsh

Package manager

  • Install Homebrew —to $HOME/.homebrew instead of /usr/local:

    git clone https://github.com/Homebrew/brew.git $HOME/.homebrew
    
  • Run which brew to confirm the one in home directory is picked up.

  • Run brew analytics off

Installing software manually

  • Download Dropbox
    • Sign in
    • Sync only 1Password
  • Download iPassword 6
    • Choose .opvault file from Dropbox
    • Go to Software Licenses → open the 1Password license file
    • Accept to use 1Password Mini when prompted

Installing software via Homebrew

All software installed on the system must be listed in .Brewfile. This is symlinked at ~/.Brewfile and used by brew bundle.

To install all the software, add it to .Brewfile and run:

brew bundle --global

Some stuff will take long, in that case, identify which packages and update .Brewfile to install them with args: ['force-bottle'] or do a one-off brew install --force-bottle [pkg] install.

Some things that require manual installation after Homebrew:

# if pip requires sudo, something is wrong, because the
# Homebrew bundle should install a $USER-writable over system-python.
    
pip install virtualenv
pip install virtualenvwrapper

Post-Installation Configuration

  • Spectacle

    • Security->Accessibility: Give access
    • Launch at Login
  • Clipy

    • Launch at Login
    • Hide from Menu Bar
    • Set history size to 200
    • Set paste key to Cmd+Shift+V
  • fzf completion scripts:

    "$HOMEBREW"/opt/fzf/install
    
  • minikube xhyve driver:

    # minikube uses xhyve, which requires privileged access to the hypervisor
    sudo chown root:wheel /usr/local/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyve
    sudo chmod u+s /usr/local/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyve
    

Settings Sync

  • Clone this repo and run install_symlinks.sh

    • Open a new terminal to take effect.
  • iTerm2->Preferences->Load Preferences From: com.googlecode.iterm2.plist directory.

    • Restart iTerm2.
  • For GPG instructions, follow .gnupg/README file.

  • VSCode:

    • Install "Settings Sync" extension and reload.
    • Run '> Sync: Download Settings'
    • Enter gist ID in vscode.sync file to prompt.
    • Once extensions are installed 'Reload' (or Restart)
    • Run '> Sync: Update/Upload Settings'
    • Create a token with 'gist' permissions and save it to the prompt
    • Wait for the Sync Summary.

Git Setup

Run:

./git_setup.sh

Generate key with a password:

ssh-keygen -f $HOME/.ssh/github_rsa

(You may want to redact hostname from the public key.)

Add key to the keychain:

ssh-add $HOME/.ssh/github_rsa          # company-installed
/usr/bin/ssh-add $HOME/.ssh/github_rsa # system

Upload the key to GitHub. https://github.com/settings/keys :

cat ~/.ssh/github_rsa.pub| pbcopy

Save this to ~/.ssh/config:

Test connection:

ssh -T [email protected] -i ~/.ssh/github_rsa

Hardware

dotfiles-2's People

Contributors

ahmetb avatar

Watchers

 avatar  avatar

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.