Build your dotfiles (shell, Vim config) from multiple sources with fresh.
Both of our dotfiles are built using fresh. We source Vim and other config from each other:
| /******************************************************************************* | |
| * Copyright © 2014 Kevin Mark * | |
| * * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); * | |
| * you may not use this file except in compliance with the License. * | |
| * You may obtain a copy of the License at * | |
| * * | |
| * http://www.apache.org/licenses/LICENSE-2.0 * | |
| * * | |
| * Unless required by applicable law or agreed to in writing, software * |
| #!/bin/sh | |
| if [ -z "$1" ] | |
| then | |
| echo "No draft file found" | |
| exit | |
| fi | |
| mv $1 _posts/`date +"%Y-%m-%d"`-`basename $1` |
Build your dotfiles (shell, Vim config) from multiple sources with fresh.
Both of our dotfiles are built using fresh. We source Vim and other config from each other:
| module Jekyll | |
| class PostPublisher < Generator | |
| safe false | |
| def replace(filepath, regexp, *args, &block) | |
| content = File.read(filepath).gsub(regexp, *args, &block) | |
| File.open(filepath, 'wb') { |file| file.write(content) } | |
| end | |
| def generate(site) |