Skip to content

irvine1231/dotfiles

 
 

Repository files navigation

Irvine Chang's dotfiles

Before doing anything, make sure you know what are you doing!

Before doing anything, make sure you know what are you doing!

Before doing anything, make sure you know what are you doing!

Settings applied by this repository are very personal and definitely not for everyone. I suggest to create your own set of dotfiles based on this repo.

How to Use?

If you are NOT Irvine Chang, please fork it before doing anything, then modify it, then use it.

If you are Irvine Chang, please follow it step by step.


Prerequisites

  1. Make sure the macOS software is up to date:
sudo softwareupdate -i -a --restart
  1. Install Apple Xcode Command Line Tools:
xcode-select --install

Quick Start

  1. Install brew and brew install:

It may require enter user password couple times in this step.

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/irvine1231/dotfiles/master/scripts/setup-brew.sh)"
  • Now, we can run iTerm2.
  1. Setup SSH.

Setup SSH and place personal keys at a right place for git clone on next step.

  • Have a copy of ~/.ssh
  1. Clone this repo:

Clone it for future easier maintainance.

git clone [email protected]:irvine1231/dotfiles.git ~/.dotfiles
  1. Init & Setup macOS:

Init by installing Oh My Zsh, and setup macOS defaults.

Please remember to change the computer name in ./scripts/setup-macos.sh.

source ~/.dotfiles/scripts/init-macos.sh
source ~/.dotfiles/scripts/setup-macos.sh
  1. Setup symlinks:

Create symlinks for dotfiles (e.g. .zshrc, .gitconfig, etc).

  • Edit your own .gitconfig.local which can be duplicated from .gitconfig.local.example.
  • Edit your own .aliases.local which can be duplicated from .aliases.local.example.
source ~/.dotfiles/scripts/setup-symlinks.sh

First Run & Setup

Dropbox

  • After setting computer name.

keepass

Visual Studio Code

Multiple Python Versions

source ~/.dotfiles/scripts/setup-python.sh

Multiple Node.js Versions

  • nvm is a version manager for node.js, designed to be installed per-user, and invoked per-shell. nvm works on any POSIX-compliant shell (sh, dash, ksh, zsh, bash), in particular on these platforms: unix, macOS, and windows WSL.

Install latest node.js version:

# Install latest version
nvm install node

# Install latest LTS version
nvm install --lts

Multiple JAVA Versions

# jEnv Configurations
export PATH="$HOME/.jenv/bin:$PATH"
eval "$(jenv init -)"
# ensure that JAVA_HOME is correct
jenv enable-plugin export
# make Maven aware of the Java version in use (and switch when your project does)
jenv enable-plugin maven

Find your JDK versions and locations:

/usr/libexec/java_home -V

Add the library you want:

jenv add <jdk_path>

# For example:
# jenv add /Library/Java/JavaVirtualMachines/openjdk-14.0.2.jdk/Contents/Home
# openjdk64-14.0.2 added
# 14.0.2 added
# 14.0 added
# 14 added

jenv versions

jenv <scope> <jdk-version>

# For example:
# jenv global 14.0
# jenv local 14.0

java -version

Android

  • Android Studio (installed by homebrew)
  • Android SDK Location: ~/Library/Android/sdk

Flutter

  • Flutter SDK Location: ~/Library/flutter

(My Notes)

TODO: Modify to Google Drive notes

  • ln -is /Users/___userNameHere___/Dropbox/Apps/Byword/notes ~/notes

Daily Usage

Mackup

  • Mackup project and doc.
  • Edit .mackup.cfg to fit your backup settings and scope.
# Launch it and back up your files
mackup backup
# Launch it and restore your files
mackup restore

Reference

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 97.6%
  • Vim Script 2.4%