Coder Social home page Coder Social logo

kevcui / dotfiles Goto Github PK

View Code? Open in Web Editor NEW
19.0 2.0 1.0 615 KB

⚫ Configuration files

Shell 43.41% CSS 0.92% Python 12.76% Vim Snippet 4.98% C 12.95% Vim Script 24.98%
dotfiles zsh vim i3wm ranger vifm st xterm tmux tridactyl termite xinitrc taskwarrior xmodmap mitmproxy darktable alacritty chunkwm skhd fzf

dotfiles's Introduction

dotfiles

The sweet sweet home of my lovely dotfiles 🍯

How to configure

You may or may not notice that there are some variables %variable% in some dotfiles. For example, in zshrc:

$ export GITREPO="%gitrepo%"

Because some settings can be different on different machines (directories, shortcuts, term colors...). To make it more flexible, the value of variable can be defined in a yaml file, the format looks like:

<filename1>:
  <variable1>: <value1>
  <variable2>: <value2>

<filename2>:
  <variable1>: <value1>
  <variable2>: <value2>

For example, in dotfile-config.yaml:

zshrc:
  gitrepo: \/home\/kevinthebest\/git
  comment: ''
  othersource: ~\/.czshrc

i3wm/config:
  comment: ''

How to build

  • Build all files in <yaml_config_file>:
$ ./build.sh <yaml_config_file>; source ~/.zshrc

The final files will be generated in output folder. Pay attention to create symbol links to the target files in output folder.

  • Build only certain files in <yaml_config_file>:
$ ./build.sh <yaml_config_file> 'Xresources i3wm/config'; source ~/.zshrc

❤️

dotfiles's People

Contributors

kevcui avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

qiangf

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.