Skip to content

pedh/dotfiles

Repository files navigation

Overview

Dotfiles

Installation

dotfiles

Clone this repo to ~/.dotfiles

brew (macos only)

  1. Install homebrew
$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  1. Run brew.sh
$ ./brew.sh

git config

  1. Create symbolic link
$ ln -sf ~/.dotfiles/.git-config ~/.gitconfig

dircolors

  1. Install dircolors
  2. Generate .LS_COLORS
# possibly gdircolors for OS X
$ dircolors -b ~/.dotfiles/.dircolors > ~/.LS_COLORS

zsh

  1. Install Meslo LGS Nerd Font
  2. Update the .zshrc config
$ echo "source ~/.dotfiles/.zshrc" > ~/.zshrc
  1. Configure powerlevel10k theme
$ p10k configure

emacs

  1. Install Doom Emacs
$ git clone --depth 1 https://github.com/doomemacs/doomemacs \
    ~/.config/emacs
$ ~/.config/emacs/bin/doom install --no-config
  1. Create symbolic link
$ ln -sf ~/.dotfiles/.config/doom ~/.config/
  1. Install DejaVu Sans font.
  2. Sync the doom config
$ doom sync
  1. Restore ~/.password-store, ~/notes/org and etc.

vim

  1. Install vim
  2. Create symbolic link
$ ln -sf ~/.dotfiles/.vim ~/
$ ln -sf ~/.dotfiles/.vimrc ~/

nvim

  1. Install nvim
  2. Create symbolic link
$ ln -sf ~/.dotfiles/.config/nvim ~/.config/

tmux

  1. Install tmux
  2. Install tmux config from @gpakosz
$ git clone https://github.com/gpakosz/.tmux.git ~/.tmux
$ ln -sf ~/.tmux/.tmux.conf ~/
$ cp ~/.tmux/.tmux.conf.local ~/

gpg

  1. Create symbolic link
$ ln -sf ~/.dotfiles/.gnupg/gpg.conf ~/.gnupg/
$ ln -sf ~/.dotfiles/.gnupg/gpg-agent.conf ~/.gnupg/

email

  1. Install isync, mu
  2. Restore ~/.password-store
  3. Create symbolic link
$ ln -sf ~/.dotfiles/.mbsyncrc ~/
$ mbsync -V --all
$ mu init --maildir ~/.mail --my-address hcn518@gmail.com
$ mu index

fontconfig (linux only)

  1. Create symbolic link
$ ln -sf ~/.dotfiles/.config/fontconfig/fonts.conf \
    ~/.config/fontconfig/fonts.conf

iterm2 (macos only)

  1. Custom iterm2 preferences
$ defaults write -app iterm "PrefsCustomFolder" -string "${HOME}/.dotfiles/.iterm"
$ defaults write -app iterm "LoadPrefsFromCustomFolder" -bool true

other

  1. Create symbolic link
$ ln -sf ~/.dotfiles/.tcshrc ~/
  1. Install kubernetes krew plugins
$ kubectl krew install < ~/.dotfiles/.krew-list.txt