Skip to content

Latest commit

 

History

History
60 lines (45 loc) · 1.44 KB

README.md

File metadata and controls

60 lines (45 loc) · 1.44 KB

Dotfiles

Use at your own risk.

Dotfiles do not specify a desktop environment or window manager becuase none is compatible with all operating systems (Windows, Mac OS, Linux, BSD).

Dotfiles do not specify a terminal emulator.

dotfiles alias is equivalent to git except for working directory is set to $HOME.

Packages

  • Shell: zsh, bash
  • Editor: vim
  • Multiplexer: tmux
  • System monitor: htop
  • File manager: Midnight Commander
  • Package manager: Homebrew (BSD not supported)

Installation

Check Git is set up on your machine before installation.

Run bootstrap first.

alias dotfiles='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
echo !! >> ~/.zshrc

# Init git repo.
mkdir ~/.dotfiles
dotfiles init

# Overwrite dotfiles.
dotfiles remote add origin https://github.com/syjung6967/dotfiles.git
dotfiles pull
dotfiles reset --hard origin/main
dotfiles checkout main

# Update submodules.
dotfiles submodule update --init

Install Homebrew and all packages from bundle file.

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofile
brew analytics off

brew bundle --global

Post Installation

Update dotfiles

dotfiles add <new files>
dotfiles submodule add <repo> <path>
dotfiles rm <files or submodules>

dotfiles commit -a
dotfiles push origin main