1 import {fail, file, resource, skip, task, template, variable} from 'fig';
2 import stat from 'fig/fs/stat.js';
4 task('create ~/.ssh', async () => {
12 task('install ~/.ssh/config', async () => {
13 if (variable('identity') === 'wincent') {
14 const src = resource.template('.ssh/config.erb');
16 const stats = await stat(src);
18 // TODO: make this warn instead of fail
19 // (on first run on a new machine, we might not have decrypted yet...
20 // because we won't have the GPG key on the machine yet...
21 // although maybe I should just do that...)
23 fail(`"${src}" does not exist; run "bin/git-cipher"`);
24 } else if (stats instanceof Error) {
29 path: '~/.ssh/config',