Skip to content

Dotfiles

Source: github.com

Over on GitHub I maintain a collection of various dotfiles. It is designed to be simple and modular so you can easily pick as many files as you would like to use for your own setup.

Instead of having having your home directory clustered with various dotfiles, we want to keep all of our relevant dotfiles bundled inside a single .dotfiles direcory. To make sure that programs can find their files in the expected location, we use symbolic links.

Included Configurations

The following configurations are currently included in this repository:

Program Files
vim .vimrc
zsh .zshrc .oh-my-zsh
X .Xdefaults .Xdefaults.d
git .gitconfig .gitconfig.local
conky .config/conky

Quick Start

  1. Clone the repository.

    1
    $ git clone https://github.com/rngcntr/.dotfiles.git ~/.dotfiles
    
  2. Initialize the submodules (optional)

    Some of the contained configurations are forks of existing configuration repositories. In order to use these, you have to clone the required submodules.

    1
    2
    3
    $ cd ~/.dotfiles
    $ git submodule init
    $ git submodule update
    

Detailed Setup

vim

  1. Follow step 1 of Quick Start (clone the repository)

  2. Install Vundle

    1
    $ git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
    
  3. Create the symlink for .vimrc

    1
    $ ln -s ~/.dotfiles/.vimrc ~/.vimrc
    
  4. Install the specified vim plugins

    1
    $ vim +PluginInstall +qall
    

zsh

  1. Follow steps 1 and 2 of Quick Start (clone the repository and submodules)

  2. Create the symlinks for .zshrc and .oh-my-zsh

    1
    2
    $ ln -s ~/.dotfiles/.zshrc ~/.zshrc
    $ ln -s ~/.dotfiles/.oh-my-zsh ~/.oh-my-zsh
    
  3. Install oh-my-zsh

    1
    $ ~/.oh-my-zsh/tools/install.sh
    
  4. Set zsh as your default shell

    1
    $ chsh -s $(which zsh)
    
  5. Log out and back in for the changes to take effect

X

  1. Follow step 1 of Quick Start (clone the repository)

  2. Create the symlinks for .Xdefaults and .Xdefaults.d

    1
    2
    $ ln -s ~/.dotfiles/.Xdefaults ~/.Xdefaults
    $ ln -s ~/.dotfiles/.Xdefaults.d ~/.Xdefaults.d
    

git

  1. Follow step 1 of Quick Start (clone the repository)

  2. Create the symlinks for .gitconfig and .gitconfig.local

    1
    2
    $ ln -s ~/.dotfiles/.gitconfig ~/.gitoconfig
    $ ln -s ~/.dotfiles/.gitconfig.local ~/.gitconfig.local
    
  3. Enter all of your personal settings into the .gitconfig.local file.

Warning

Make sure you never commit this file for privacy reasons

conky

Important Note

My conky widgets are heavily personalized and are not expected to work as intended on arbitrary systems. Anyway, feel free to use them as a starting point to create your own conky experience.

  1. Follow step 1 of Quick start (clone the repository)

  2. Create the symlink for conky

    1
    $ ln -s ~/.dotfiles/.config/conky ~/.config/conky
    
  3. Start conky

    1
    $ .config/conky/conky-start.sh
    

Tip

Using this setup, conky does not automatically start on boot or login. However, conky can be auto started by creating a desktop entry and placing it in ~/.config/autostart. An example desktop entry would look like this:

1
2
3
4
5
[Desktop Entry]
Name=Conky
Comment=Autostart conky
Type=Application
Exec=sh -c "sleep 10; ~/.config/conky/conky-start.sh"