/settings

Environment settings

Primary LanguageShell

Batjaa's dotfiles

Shell setup

  1. Use Safari to add your SSH keys to github. Clone the repository. In macos terminal simply bash will do.

  2. To update, cd into your local dotfiles repository and then (remember to use bash):

source bootstrap.sh

Alternatively, to update while avoiding the confirmation prompt:

set -- -f; source bootstrap.sh
  1. Here’s an example ~/.path file that adds /usr/local/bin to the $PATH:
export PATH="/usr/local/bin:$PATH"
  1. Add custom commands without creating a new fork to ~/.extra
# Git credentials
# Not in the repository, to prevent people from accidentally committing under my name
GIT_AUTHOR_NAME="Batjaa Batbold"
GIT_COMMITTER_NAME="$GIT_AUTHOR_NAME"
git config --global user.name "$GIT_AUTHOR_NAME"
GIT_AUTHOR_EMAIL="batjaa0615@gmail.com"
GIT_COMMITTER_EMAIL="$GIT_AUTHOR_EMAIL"
git config --global user.email "$GIT_AUTHOR_EMAIL"

MacOS setup

  1. Get Homebrew and run ./brew.sh

  2. ./brew-cask.sh

  3. Set defaults: ./.macos

  4. Configure Hammerspoon

  5. Install Hammerspoon

brew install hammerspoon
  1. Install SpoonInstall
unzip ~/Downloads/SpoonInstall.spoon.zip -d ~/.hammerspoon/Spoons/
  1. Copy config
cp .hammerspoon/init.lua ~/.hammerspoon/init.lua

Google drive

  • Sign ing
  • Configure

Alfred setup

  • Apply license
  • Update hotkey
  • Enable clipboard history

Thanks to…