/dotfiles

dotfiles, plists

Primary LanguageShell

Purpose

Collection of configuration files and scripts to set up an Apple computer.

Console

Bash

Set environment variables and define aliases by copying default .bash_profile.

cp .bash_profile ~/.bash_profile

Make JDKs downloadable (JDKs are listed in casks.txt.)

brew tap AdoptOpenJDK/openjdk

Install Brew

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

Install Formulas (System password is several times requested.)

brew install $(cat formulas.txt)

Set Git environment

git config --global user.email biz@niklaushug.ch
git config --global user.name "Niklaus Hug"

Check Git environment

git config --list
cat ~/.gitconfig

Formula n is listed in formulas.txt.

  1. Avoid sudo by taking ownership of system directories.
  2. Install avn-n to switch automatically versions.

Formula jEnv is listed in formulas.txt. Bash configuration is found in .bash_profile.

Add Java versions to jEnv.

  jenv add /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/
  jenv add /Library/Java/JavaVirtualMachines/adoptopenjdk-9.jdk/Contents/Home/
  jenv add /Library/Java/JavaVirtualMachines/adoptopenjdk-10.jdk/Contents/Home/
  jenv add /Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk/Contents/Home/
  jenv add /Library/Java/JavaVirtualMachines/adoptopenjdk-12.jdk/Contents/Home/
  jenv add /Library/Java/JavaVirtualMachines/adoptopenjdk-13.jdk/Contents/Home/
  jenv add /Library/Java/JavaVirtualMachines/adoptopenjdk-14.jdk/Contents/Home/

Enable jEnv plugins.

  jenv enable-plugin maven
  jenv enable-plugin export

Check if configuration was successful.

  jenv versions    # Shows a list of Java versions to choose from.      
  echo $JAVA_HOME  # Shows an absolute path to a Java version. 
  javac -version   # Shows a version.

Install Bower

npm install -g bower

Apps

Installation

App Store

Brew

Install all apps in one go.

brew cask install $(cat casks.txt)

All apps are listed in casks.txt.

Manually

Configure apps

Alfred Open

Alfred Preferences => /Advanced => Set syncing preferences folder: ~/Dropbox/Apps Config/Alfred

Better Touch Tool

Open: Better Touch Tool Preferences => /Advanced Settings/Sync => Check: Enable Dropbox Sync

Chrome

  1. Open application
  2. Sign in with account and let install extensions automatically.

Geek Tool

  1. Open folder ./desktop
  2. Double click on files Display Image.glet, Display Quote.glet and Load Image and Quote.glet to start.
  3. Open Load Image and Quote.glet to configure --cl in field Command. --cl is an application id for unsplash.com.

iStat

  1. Open app iStat Menu
  2. Add License by opening menu iStat Menu > Aktivieren
  3. Import setting by opening menu Ablage > Einstellungen importieren and loading file /Dropbox/Apps Config/iStat Menus/iStat Menus Settings.ismp.

iTerm

  1. Open app iTerm
  2. Import settings by opening menu: iTerm > Preferences, tab: Profiles, dropdown: Other Actions > Import JSON Profiles and loading file /Dropbox/Apps Config/iTerm2/Profiles/nhug.json.

Moom

Activate Moom license

cp ~/Dropbox/Apps\ Config/Many\ Tricks/Receipts ~/Library/Application\ Support/Many\ Tricks/

Import Moom settings

defaults import com.manytricks.Moom ~/Dropbox/Apps\ Config/Many\ Tricks/com.manytricks.Moom.plist

Configuration

Sublime

Press: Cmd & Shift & P => Open: Package Control: Advanced Install Package => Enter: Autoprefixer, Babel, ColorHints, CSScomb, CSSLint, Emmet, Emmet Css Snippets, FileDiffs, GitGutter, HTML-CSS-JS Prettify, jQuery, MarkdownLivePreview, ReactJS, SideBarEnhancements, SublimeLinter-html-tidy, SublimeLinter-jshint, SublimeLinter-json, SublimeLinter-xmllint, Theme - Monokai Pro, Trimmer, TypeScript

Mail Accounts

SSH

WiFi