/dotfiles

My dotfiles setup

Primary LanguageShell

My Dotfiles

This is my dotfiles setup for macos and linux.

To reproduce the setup on a new machine, run the following commands:

cd ~
git clone git@github.com:anubhavshrimal/dotfiles.git .dotfiles
cd .dotfiles/ 

Brewfile

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  • To install the dependencies and apps using brew:

    • For MacOS
    # Minimal apps
    brew bundle --file=./brewfiles/MinimalBrewfile
    
    # Extras if needed
    brew bundle --file=./brewfiles/ExtrasBrewfile
    • For Linux / Cloud desktop
    # Minimal apps
    brew bundle --file=./brewfiles/CloudBrewfile
  • To create a Brewfile from old machine run: brew bundle dump

Python & Jupyter Notebook

  • Install Miniconda (MacOS / Linux)
  • Install Jupyter notebook: conda install -c conda-forge notebook
  • Install nb_extensions: conda install -c conda-forge jupyter_contrib_nbextensions

Terminal

For MacOS

For Cloud Desktop

  • Pure needs to be installed manually because brew installation doesn't work.
git clone https://github.com/sindresorhus/pure.git "$HOME/.zsh_local/pure"

# Add pure directory path in .zshrc_local
cat >> .zshrc_local
fpath+=$HOME/.zsh_local/pure

# SSH invokes .zprofile first, hence we need to source .zshrc from there
# Add source ~/.zshrc in .zprofile
cat >> .zprofile
source ~/.zshrc

Dotfiles setup

./install

  • Note: Rename/Backup/Remove any files which throw an error while running the script.
  • If the local scripts contain useful commands required by the system, you can rename the files as follows:
  mv .zshrc .zshrc_local
  mv .vimrc .vimrc_local
  mv .gitconfig .gitconfig_local
  mv .tmux.conf .tmux_local.conf

Miscellaneous setups