/dotfiles

:wrench: my config files > http://dotfiles.github.io/inspiration/

Primary LanguageShell

My configuration files, which you can adopt in part or in whole.

I didn't include the leading dot, as that would hide them inside my local git repository which is inconvenient.

Custom shell prompt

My custom prompt called bender (which includes git integration) is available for:

bashrc

It's included with the name bashrc here, but it contains functionality designed to be shared by both bash and zsh. I generally save it as /etc/sh which is sourced by both my .bashrc and .zshrc files like this:

. /etc/sh

bashrc-*

These are the more system-specific shell configuration files. My actual configuration layout looks like:

  • ~/.zshrc and ~/.bashrc source /etc/sh-local.sh
# /etc/sh-local.sh

. /etc/sh
. /etc/sh-linux.sh
. /etc/sh-arch.sh
. /etc/sh-x1.sh

# Local configuration specific to this machine

zshrc

These are configuration options specifically for zsh, which I generally apply on top of oh-my-zsh with my custom prompt.

Generally my .zshrc file sources the /etc/sh mentioned earlier.

Add these to your .zshrc file if you think they are useful.

vimrc

I love vim and use it as my main text editor (this includes neovim). This .vimrc file makes vim way more ergonomic and requires the dein (the installation of which is unforunately slightly tricky) plugin manager to install the vim plugins.

I started my vim journey by looking at other people's .vimrc files and looking up what each line did to figure out what my configuration file should look like.

In fact, that's how I learned how to use vim.

Adjust the s:dein_base value to match your home directory and dein installation directory. The reason I didn't use ~ was so that root would load the same .vimrc without problems.

Resources I found particularly helpful:

screenrc

Save this in your home folder as ~/.screenrc if you use screen to abstract your terminal sessions.

Resources I found helpful:

tmux.conf

tmux is more advanced than GNU Screen.

Save this as /etc/tmux.conf to use it system-wide, or as ~/.config/tmux/tmux.conf.

i3-config

Configuration for the i3 tiling window manager.

Save this as ~/.config/i3/config but change the parts relevant to your system.

Resources I found helpful:

sway-config

I now use sway which is a Wayland compositor that uses a similar configuration to i3.

Save this as ~/.config/sway/config but change the parts relevant to your system.

Also I use...

Firefox add-ons:

Contributing

If you can improve something, by all means open a pull request.