izeau / .config

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dotfiles

My personal set of configuration files.

Install

Install Homebrew

# As instructed by https://brew.sh/
$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Clone this repository

# Could be a good idea to backup your .config folder first
$ mv ~/.config ~/.config.bak

# Clone this repository into ~/.config
$ git clone https://github.com/izeau/.config ~/.config

# Install packages, plugins, etc.
$ make -C ~/.config

Feel free to merge ~/.config.bak and ~/.config afterwards.

Setup ZSH

# Keep existing ZSH history
$ mv ~/.zsh_history ~/.config/zsh/.zsh_history

# Backup the .zshenv file, if any
$ cp ~/.zshenv ~/.zshenv.bak

$ zsh -c '> ~/.zshenv <<<"source ~/.config/zsh/.zshenv"'

Update

# Pull changes
$ git -C ~/.config pull

# Update packages, plugins, etc.
$ make -C ~/.config

Extras

iTerm2

# Create a temporary directory
$ cd $(mktemp -d)

# Download the theme, and import it
$ curl -O https://raw.githubusercontent.com/mbadolato/iTerm2-Color-Schemes/master/schemes/ayu.itermcolors
$ open ayu.itermcolors

Other iTerm2 settings:

  • Appearance / General / Theme: Minimal
  • Appearance / Panes / Side margins: 8
  • Appearance / Panes / Top & bottom margins: 8
  • Profiles / Default / General / Basics / Name: (empty string)
  • Profiles / Default / General / Basics / Title: Profile
  • Profiles / Default / General / Command / Command: /opt/homebrew/bin/tmux new-session -A
  • Profiles / Default / Colors / Color preset: ayu
  • Profiles / Default / Colors / Smart box cursor color: (checked)
  • Profiles / Default / Text / Text Rendering / Blinking text: (checked)
  • Profiles / Default / Text / Text Rendering / Italic text: (checked)
  • Profiles / Default / Text / Text Rendering / Use built-in Powerline glyphs: (checked)
  • Profiles / Default / Text / Font: FiraCode Nerd Font Mono / Regular / 14
  • Profiles / Default / Text / Font / Use ligatures: (checked)

Bonus: enable Touch ID authentication for sudo

Add the following line at the top of /etc/pam.d/sudo:

auth sufficient pam_tid.so

About


Languages

Language:Vim Script 96.8%Language:Shell 2.1%Language:Ruby 0.6%Language:Makefile 0.5%