π‘ dotfiles configuration
First step, clone the dotfiles repository to your computer. This can be placed anywhere, and symbolic links will be created to reference it from your home directory.
$ git clone https://github.com/jsyom/dotfiles-3.git ~/.dotfiles
$ cd ~/.dotfiles
$ git submodule update --init --recursive
Every file with a .symlink
extension will be symlinked to the ~/
home directory with a .
in front of it. For example, vimrc.symlink
will be symlinked in the home directory as ~/.vimrc
. Additionally, all files in the $DOTFILES/config
directory will be symlinked to the ~/.config/
directory for applications that follow the XDG base directory specification, such as neovim.
$ source ./install/link.sh
Install homebrew if it is not currently installed, then install the homebrew packages listed in brew.sh
.
$ source ./install/brew.sh
Use brew cask to install native apps listed in brew-cask.sh
.
$ source ./install/brew-cask.sh
Any private and custom commands and configuration should be placed in a ~/.localrc
file. This file will not be under version control or committed to a public repository. If ~/.localrc
exists, it will be sourced for the inclusion of .zshrc
.
Here is an example ~/.localrc
:
# Git credentials
# Not under version control to prevent people from accidentally committing with your details
GIT_AUTHOR_NAME="John Yom"
GIT_AUTHOR_EMAIL="[email protected]"
GIT_COMMITTER_NAME="$GIT_AUTHOR_NAME"
GIT_COMMITTER_EMAIL="$GIT_AUTHOR_EMAIL"
# Set the credentials (modifies ~/.gitconfig)
git config --global user.name "$GIT_AUTHOR_NAME"
git config --global user.email "$GIT_AUTHOR_EMAIL"
# Aliases
alias s="cd ~/Sites"
alias p="cd ~/Projects"
Install tmux plugins with tpm by pressing prefix + I
.
This will install the plugins listed in .tmux.conf
.
Vim plugins are managed by vim-plug, when opening vim for the first time run:
$ nvim +PlugInstall
If you're seeing boxes β‘
, this means your current font does not support
powerline and nerd fonts. Install nerd-fonts and configure your gui/terminal, in my case iTerm, to use a patched font for non-ascii characters. If you prefer not to do this, then simply remove the Plug 'ryanoasis/vim-devicons'
plugin from plugins.vim
.
My default font is currently Monaco
, and for non-ascii characters I'm using Droid Sans Mono Nerd Font
.
$ npm install -g instant-markdown-d jsonlint prettier
Inspiration and code was taken from many sources, including: