Collection of configuration files and scripts to set up an Apple computer.
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.
- Avoid sudo by taking ownership of system directories.
- 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
Install all apps in one go.
brew cask install $(cat casks.txt)
All apps are listed in casks.txt.
- Alfred alfred
- AppCleaner appcleaner
- Better Touch Tool bettertouchtool
- Caffeine caffeine
- Chrome google-chrome
- Dashlane dashlane
- Docker docker
- Dropbox dropbox
- Evernote evernote
- Firefox firefox
- Geek Tool geektool
- Gimp gimp
- IStumbler istumbler
- Inkscape inkscape
- Intellij IDEA intellij-idea
- Kitematic kitematic
- Libre Office libreoffice
- Moom moom
- Postman postman
- Scribus scribus
- Sketch sketch
- Sourcetree sourcetree
- Spotify spotify
- Sublime Text sublime-text
- The Unarchiver the-unarchiver
- Transmit transmit
- VLC vlc
- Virtual Box virtualbox
- iStat Menus istat-menus
- iTerm iterm2
- rocket.chat rocket-chat
- Whatsapp whatsapp
Alfred Preferences => /Advanced => Set syncing preferences folder: ~/Dropbox/Apps Config/Alfred
Open: Better Touch Tool Preferences => /Advanced Settings/Sync => Check: Enable Dropbox Sync
- Open application
- Sign in with account and let install extensions automatically.
- Open folder
./desktop
- Double click on files
Display Image.glet
,Display Quote.glet
andLoad Image and Quote.glet
to start. - Open
Load Image and Quote.glet
to configure--cl
in fieldCommand
.--cl
is an application id for unsplash.com.
- Open app
iStat Menu
- Add License by opening menu
iStat Menu > Aktivieren
- Import setting by opening menu
Ablage > Einstellungen importieren
and loading file/Dropbox/Apps Config/iStat Menus/iStat Menus Settings.ismp
.
- Open app
iTerm
- 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
.
cp ~/Dropbox/Apps\ Config/Many\ Tricks/Receipts ~/Library/Application\ Support/Many\ Tricks/
defaults import com.manytricks.Moom ~/Dropbox/Apps\ Config/Many\ Tricks/com.manytricks.Moom.plist
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