Skip to content

dfranklinau/dotfiles

Repository files navigation

dotfiles

Table of contents

Introduction

This is a collection of files and configurations that I use on a day-to-day basis:

  • .zshrc - zsh and Oh My Zsh configuration.
  • .emacs - Emacs configuration.
  • .gitconfig - Git aliases and configuration.
  • .vim - Vim plugins, syntax files and colour schemes.
  • .vimrc - Vim configuration.

Template files are also included. These are intended to be copied across to new projects where needed and serve as a reference:

  • .editorconfig.template - EditorConfig configuration template.
  • .gitignore.template - gitignore template for commonly ignored files.
  • .stylelintrc.json.template - stylelint v13.13.1 configuration template, which uses the stylelint-order v4.1.0 plugin.

Installation

Clone the repository to ~/.dotfiles and run the installation script:

cd ~
git clone git@github.com:dfranklinau/dotfiles.git .dotfiles
cd .dotfiles
bash install.sh

The installation script creates symbolic links for a list of files and folders within ~/.dotfiles.

It is recommended to create a back up of any existing dotfiles that are important prior to running, in the off-chance something goes awry.

Usage

Extending .zshrc

Create a new file:

~/.zshrc-local

This file is ignored by Git so any changes will not be tracked.

Extending .vimrc

Create a new Vim plugin:

~/.vim/pack/local/start/local/plugin/local.vim

The ~/.vim/pack/local/ directory is ignored by Git so any changes will not be tracked.

Appendix

Oh My Zsh

I use zsh coupled with Oh My Zsh. Install it to ensure the configuration within .zshrc works.

git-prompt.sh

git-prompt.sh adds functionality for displaying the currently checked out Git branch and status (e.g. if a merge or rebase is in progress) in the prompt.

Vim plugins

Recommended utilities

  • ack is used for searching through files; I find it easiest to install the single-file version under ~/bin/ack.
  • nodenv is used for managing multiple versions of Node.js.
  • tidy-html5 is for use with Ale in Vim.
  • pandoc is a neat document conversion tool.