kvendrik / dotfiles

💻

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CircleCI

These dotfiles...

  • Are a collection of utilities to speed up your workflow
    Optimized for a front-end web development workflow.
  • Contain no side-effects
    They don't make any changes to your machine without explicit request.
  • Are configurable where needed
    They don't contain info that's specific to myself and are configurable using env variables.
  • Work best with Oh My ZSH on OS X
    As that's what I use myself.

Wait, there's more...

Disclaimer: These dotfiles are primarely maintained for personal use so I can't guarantee everything will work out of the box. It's possible you'll run into errors because you use a different shell, have missing dependencies, or because of other reasons. Feel free to resolve the errors in whatever way is most convenient and optionally contribute them back to here.

What's in it?

Most of the aliases and methods should be pretty self-explanatory. Everything is grouped by category and either has self-explanatory code, a usage message, or a comment that explains what it does and why. If you see anything that is unclear feel free to clear it up by e.g. adding an extra comment and opening up a pull request. If you like some things but not others you can also cherry-pick the parts you like.

Setup

  1. Clone the dotfiles to your home folder.
  2. (Optional) Run ./setup if you'd like to use the home files ./home/*, use the provided ZSH and Terminal themes, and/or want to install several (optional) dependencies.
  3. Configure the utilities using environment variables, source the index file, and add ./bin to your PATH.

The provided ./home/.zshrc already sources the dotfiles and sets up the PATH. It also sources an optional ~/.rc-extra file from which you can export the variables. The provided ./home/.zshrc file gets symlinked to your home folder when running ./setup.

In your RC file: (~/.zshrc if you use ZSH):

export GITHUB_USERNAME='kvendrik'
export REPOSITORIES_DIRECTORY='path/to/all/your/cloned/repositories'

source ./dotfiles/index

export PATH="$PATH:$HOME/dotfiles/bin"

Cherry-picking

Like some things but not others? Feel free to cherry-pick the files that contain the methods and/or aliases that you like:

# import the foundation (contains basic settings and utilities)
source './dotfiles/foundation/index.bash'
# import files you like
source './dotfiles/file/you/like.bash'

Directories

  • ./home/
    Contains files that can be symlinked to your home folder by running ./setup

  • ./scripts/
    Standalone executables to speed up various tasks

  • ./tests/
    Contains various tests for these dotfiles that are ran on CI or manually by running ./tests/run-all

  • Everything else is utility code that can be used by sourcing ./index (see setup instructions) or is self-explanatory (e.g. ./.circleci/, ./zsh-themes/)

🏗️ Contribute

  1. Make your changes.
  2. Run ./tests/run-all to test the changes you make.
  3. Open a PR.

About

💻

License:MIT License


Languages

Language:Shell 100.0%