/dotfiles

๐Ÿง™๐Ÿฟโ€โ™‚๏ธ Doting Dotfiles

Primary LanguageShellMIT LicenseMIT

dotfiles


Brow my mind
via GIPHY

Open in VSCode twitter

Gist

Busy? Just run command below;)

curl -L https://nozomiishii.dev/dotfiles/install | bash
with full version of Brewfile
curl -L https://nozomiishii.dev/dotfiles/install | bash -s -- --full

Outline

๐Ÿ“ฆ New Macbook? Awesome

Turn On and Follow the guide

  • Full Name: Nozomi Ishii
  • Account name: nozomiishii

โš ๏ธ Skip the AppleID sign in until the home screen. it takes time. โš ๏ธ

Open Apple ID with Spotlight

  โŒ˜ + space Apple ID

Sign in your iCloud and App Store, when you get to the home screen. (to get apps using mas command)

๐Ÿ’ก Can you not use your personal apple ID on your company computer? Install xcode manually from the App Store.

๐ŸŽ Apple ID

  • Edit your profile photo

  • โ˜๏ธ iCloud

    • Photos
    • iCloud Drive
    • Find My Mac
    • Stocks

๐Ÿ App Store

  โŒ˜ + space App Store
  • Login

Install

Wait about 3 hours(Go grab some food and take a nap ๐Ÿ•๐Ÿ˜ช)

Open Terminal with Spotlight

  โŒ˜ + space Terminal
curl -L https://nozomiishii.dev/dotfiles/install | bash

-L (--location): Enable redirection.

Install Manually

Install xcode-select

xcode-select --install

xcode-select: this command-line Tools are required for Git and Homebrew

Come to this page

open https://nozomiishii.dev/dotfiles

Clone

cd ~ && git clone https://github.com/nozomiishii/dotfiles.git

Brew Install

~/dotfiles/src/install -b

๐Ÿ”ซ When permission is not set

ls -l ~/dotfiles/src/install
chmod +x ~/dotfiles/src/install

๐Ÿ’ป macOS setup

~/dotfiles/src/install -m

๐Ÿง๐Ÿปโ€โ™€๏ธ Configs setup

~/dotfiles/src/install -c

๐ŸŒ Toolchains setup

~/dotfiles/src/install -t

๐Ÿ›‹ Restart

sudo reboot

App preferences

โ›“ Karabiner-Elements

  • Login

๐Ÿ”‘ 1Password

  • Preferences > Security > Unlock using >
    Check "Touch ID"
  • Preferences > General > Keyboard shortcuts >
    Autofill: โŒฅโ‡งX
  • Preferences > Developer > Check "Use the SSH agent"
  • Preferences > Developer > Check "Integrate with 1Password CLI"

๐ŸŒ Chrome

โ˜๏ธ google-drive

  • Sign in and Sync

๐Ÿ—‚ Finder

  • Rearrange the order of the sidebar
Finder Sidebar
 โ”ฃ ๐Ÿ“‚Favorites
 โ”ƒ โ”ฃ ๐ŸŒGoogle Drive(My Drive)
 โ”ƒ โ”ฃ ๐Ÿ—ƒdotfiles
 โ”ƒ โ”ฃ ๐Ÿ $USER
 โ”ƒ โ”ฃ ๐ŸŽApplications
 โ”ƒ โ”— ๐Ÿ“–Desktop
 โ”— ๐Ÿ“‚Locations

๐Ÿš Raycast

  • needs: Finder setup

  • Sign in

  • Import Settings from "~/dotfiles/src/configs/_raycast/backup"

๐Ÿ—ฟ fig

  • Setup

๐ŸŸ VSCode

  • User Icon > Setting sync > Login >
    Select "Marge"
    โš ๏ธ Do NOT Select "Replace"
  • โ‡ง + โŒ˜ + P > Open command pallet >
    Icons: Activate VSCode Icons
  • Add MonokaiPro License

๐Ÿ˜ผ SSH & Git

๐Ÿฆ„ Clone repositories

~/dotfiles/src/install -r

๐Ÿคต๐Ÿปโ€โ™‚๏ธ Keyboard Maestro

  • Register Keyboard Maestro... >
    Activate the License
  • Preferences... > Sync Marcos >
    Select "~/dotfiles/apps/KeyboardMaestro"

๐Ÿงน Hazel

  • License... >
    Activate the License
  • Folder > Rule Sync Settings... > Use existing sync file... >
    Select "~/dotfiles/apps/Hazel"
  • Preferences... > General >
    Uncheck "Show Hazel in the menu bar"
  • Preferences... > Trash >
    Check "Delete files sitting in the Trash for more than 1 Day"

๐ŸŽจ ColorSnapper2

  • Activate the license
  • General
    • Hotkeys:
      Pick Color: โŒƒ + โŒฅ + C
    • Clipboard Format > Check "Choose from Colors & Formats after picking"
  • Appearance
    • Magnification > 15x
  • Code Style
    • Hex > check "Uppercase"
    • CSS Hex > check "Uppercase"

๐Ÿ˜ TablePlus

  • TablePlus >
    Register license

๐Ÿ” Slack

  • Sign in

๐Ÿ”ฎ DeepL

  • Sign in
  • Set hotkey to
    โ‡ง + โŒ˜ + Space

๐Ÿซ BLEUnlock

  • Device: Select your device
  • Unlock RSSI: -55dBm
  • Lock RSSI: -75dBm
  • Check 'Pause "Now Playing" while Locked'
  • Check 'Use Screensaver to Lock'
  • Check 'Launch at Login'

๐Ÿ’ป System Preferences

  • ๐ŸŒƒ Desktop & Screen Saver

    • Desktop
      Select your favorite image
    • Screen Saver
      Select "Brooklyn" (might need go Preferences > Security & Privacy > General >
      On the bottom side, select "Open Anyway")
  • ๐ŸŒ Language & Region

    • Add Japanese
  • ๐Ÿ›Ž Notifications & Focus

    • Notifications

      • Calendar, Notion, Slack
        Alert style: Alerts
        Show in Notification Centre
        Play sound for notification
      • Xcode
        Banners
    • Focus

      • Uncheck "Share Focus Status"
  • ๐Ÿ‘ค Users & Groups

    • Current User
      Edit Profile photo
  • โ˜๐Ÿป Touch ID

    • Registering your left pinky for Touch ID, so you can eat pizza without any hassle.
  • ๐Ÿงš๐Ÿปโ€โ™€๏ธ Accessibility

    • Spoken Content
      Select and Download "Siri Voice 1(United Kingdom)"
      Adjust Speaking Rate
  • ๐Ÿ‘ฎ๐Ÿป Security & Privacy

    • FileVault
      Click the lock to make changes >
      Turn on
  • โŒจ๏ธ Keyboard

    • Candidate window
      • Font size: 14
      • Uncheck: Full-width numeral characters
  • ๐Ÿ–ฅ Displays

    • Arrangement
      Change "iPad display on left"

๐Ÿ“… Calendar

  • Add Accounts
  • Add Calendar on Widgets

๐Ÿต Blender

  • Sign in
  • Edit > Preferences > Add-ons > search "ID" to find "System: Blender ID authentication" >
    login!
  • Download Blender Cloud add-on
  • Edit > Preferences > Add-ons > install >
    install Add-on "blender_cloud-X.XX.addon.zip"
    โš ๏ธ DO NOT UNZIP
  • Edit > Preferences > Input > Keyboard >
    Emulate Numpad

๐Ÿธ Android Studio

  • Preferences > Editor > General > Font > Size >
    Font Size: 14
  • Plugins
    Monokai Pro Theme

๐ŸŽ Xcode

  • Add Account
  • Preferences > Themes >
    Monokai Pro
  • Preferences > Navigation >
    Command-click on Code: Jumps to definition

๐Ÿฆ‹ Affinity Designer

๐Ÿ“ž Cisco Packet Tracer

๐Ÿ•ถ ngrok

  ngrok authtoken <your_auth_token>
ngrok http 3000

๐Ÿš™ duet

โฑ Setup Time machine

  • Menu bar > Time machine >
    Backup

๐Ÿ‘จ๐Ÿปโ€๐Ÿณ Customize

How to add app to Brewfile

Search the app

  brew search <app_name>

Check if it's an app you want to download.

  brew info <app_name>

How to find the defaults command

defaults read > before
# change the config
defaults read > after
diff before after

Search app plist

  ll ~/Library/Preferences/ | grep <app_name>
  # example
  ll ~/Library/Preferences/ | grep firefox

NSGlobalDomain plist

open ~/Library/Preferences/.GlobalPreferences.plist

Read app config

  defaults read <app_name_plist>
  # example
  defaults read notion.id

Symbolic link

  ln -nfs <New_linking_file> <Existing_linked_files>
  # example
  ln -nfs "$HOME/Google Drive/Settings/dotfiles/zshrc" "$HOME/.zshrc"

๐Ÿ‘จ๐Ÿปโ€๐Ÿญ Maintenance & Dev

Maintenance

Clean unused homebrew dependencies up, and upgrade them

brew bundle cleanup --verbose --file "$HOME/dotfiles/Brewfile.macos.rb" --force && brew cleanup && brew upgrade

Dev

yarn install

To use @prettier/ruby

gem install bundler prettier_print syntax_tree syntax_tree-haml syntax_tree-rbs

Check the performance of zsh

for x in {1..10}; do time zsh -i -c exit; done

๐Ÿ”ซ Troubleshooting

  • Audio-related
    NVRAM Reset
    Shut down and Restart with
    โŒฅ + โŒ˜ + P + R
    ๐Ÿ’ก NVRAM is a memory that saves its stored data regardless if the power is on or off

  • Third-party app related
    Safe mode
    Shut down and wait 10 seconds
    Restart with โ‡ง
    ๐Ÿ’กSafe Mode temporarily disables any third-party applications and starts your device with default system apps

๐Ÿ‘ผ Reinstall macOS

1: Unpair

  • System Preferences > Bluetooth >
    Unpair Bluetooth devices

2: Clean up

  • Delete SSH keys on GitHub, GitLab

3: Sign out your iCloud.

  • System Preferences > Apple ID > iCloud >
    Turn off "Find My Mac"
  • System Preferences > Apple ID > Overview >
    Sign Out

4: Deactivate license

  • ๐Ÿ˜ TablePlus
    TablePlus > Register license

  • ๐ŸŽจ ColorSnapper2
    About ColorSnapper... >
    Deactivate license

  • ๐Ÿงน Hazel
    License... > Remove

5: Erase All Content

  • Erase All Content - Japanese | English
  • From the Apple menu ๏ฃฟ in the corner of your screen, choose System Preferences
  • From the System Preferences menu in the menu bar, choose Erase All Content and Settings

๐Ÿ™Œ References

Tutorials

Dotfiles

CheatSheets

Dotfiles managed with

License

MIT License

ยฉ 2021 Nozomi Ishii