code: function(name, options) {
    var opts = options || {};
    var line = script();
    var file = path.join(process.env.HOME, name);
  
    return fs.readFile(file, 'utf8').catch(isNoEntry, _.noop)
    .then(function(result) {
      var exists = !!result;
      var contents = result || '';
      if (contents[contents.length - 1] !== '\n') {
        line = '\n' + line;
      }
  
      if (contents.match(/avn\.sh/)) {
        console.log('%s: %s %s',
          chalk.bold.magenta('avn'),
          chalk.yellow('profile already set up'),
          chalk.grey('(~/' + name + ')'));
        return 'no-change';
      }
      else if (exists || opts.force) {
        return Promise.resolve('change')
        .tap(function() { return fs.appendFile(file, line); })
        .tap(function() {
          console.log('%s: %s %s', chalk.bold.magenta('avn'),
            chalk.cyan('profile setup complete'),
            chalk.grey('(~/' + name + ')'));
        });
      }
  
    });
  }
docs: Update a named profile file to include the load script,
  {@link setup.profile.~script}.
  
  @private
  @function setup.profile.~appendScript
  @param {String} name The name of the profile file.
  @param {Object} [options]
  @param {Boolean} [options.force] Force the creation of the file.
  @return {Promise}