Skip to content

dnath/dotfiles

Repository files navigation

dotfiles

Pre-requisites

For MacOS

  1. Install xcode from the App store.

  2. Install xcode CLI.

    xcode-select --install
  3. Accept xcode license

    sudo xcodebuild -license
  4. Install git.

    For MacOS, git --version will trigger the UI dialog for installation, if not installed already.

    You may also use brew to install git.

  5. Install brew and packages like wget, stow, vim, etc.

  6. Install iTerm2.

  7. Install Powerline Fonts.

  8. Install dark solarized theme for iTerm2 & terminal.

    NOTE: Solarized theme may come already installed in iTerm2.

For Linux

  1. Update package list

    sudo apt update
  2. Install wget, stow, git, zsh and vim.

    sudo apt install --assume-yes wget stow git-all zsh vim
    sudo apt install --assume-yes --fix-broken
  3. Install dark solarized theme for terminal.

  4. Install Powerline Fonts

    sudo apt-get install --assume-yes fonts-powerline

Common Steps

  1. Set zsh as default.

    sudo chsh -s $(which zsh) $USER
  2. Install more file editors:

    1. Install Sublime and its packages.
    2. Install Visual Studio Code.
  3. Install python, pip and related packages.

  4. Install and customize vim

Installation

  1. Before installing you may want to cleanup any straggler .*rc files like:

    rm -f ~/.bashrc ~/.zshrc
  2. Clone and install dotfiles:

    Optional : Setup Github SSH keys.

    mkdir -p git
    cd git
    
    git clone --recursive git@github.com:dnath/dotfiles.git

    Alternatively use git clone --recursive https://github.com/dnath/dotfiles if keys are not set up.

    To install, run:

    cd dotfiles
    stow -vt ~ .

Optional Steps

  1. Customize terminal prompt for zsh or bash.

FAQs

How to delink dotfiles?

cd ${REPO}
stow -Dvt ~ .

TODOs

  1. Autoformatter for py, c, cc, js, java, html, md, go, rb.
  2. Auto test and presubmit
  3. short links

Appendix

Whenever Linux is referred, a Debian based disribution is assumed.