• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

seethroughdev/homebrew-dotfile-generator: A custom generator for your homebrew d ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

seethroughdev/homebrew-dotfile-generator

开源软件地址:

https://github.com/seethroughdev/homebrew-dotfile-generator

开源编程语言:

JavaScript 75.3%

开源软件介绍:

Note: This repo was deprecated after: Homebrew/legacy-homebrew#32952

Homebrew Dotfile Generator

You can run homebrew scripts from dotfiles.

This mini app will scan all of your brew formulae, brew-casks and locally installed Applications, and generate 3 custom homebrew dotfiles. It creates:

  • a .brew file for running standard homebrew actions
  • a Brewfile which uses the new brew bundle feature to store a list of formulae for re-installing
  • a Caskfile for homebrew-cask. Which also uses the new brew bundle feature. This will load casks in the same way that the Brewfile will load formulae

Examples

Here's an example of each generated file:

Installation

This assumes you have homebrew installed. If you don't. That's a good place to start.

  git clone https://github.com/seethroughtrees/homebrew-dotfile-generator.git
  cd homebrew-dotfile-generator
  npm install

Usage

Make sure your homebrew is up to date.

brew update

Then just type node app to generate your script files.

node app

Options

Specify Path

By default, the files will be generated in the current directory. But you can specify an install directory (like your home directory) with the -p flag.

node app -p ~/Desktop
Force Option

Also, the files will not overwrite automatically. I did this as a safety precaution. If you want to overwrite, just pass the -f flag.

node app -f
Set Homebrew-Cask directory

Homebrew-Cask gives you the option to specify the /Applications directory if you want to install your casks directly into that folder. If you pass the -a flag, Homebrew Dotfile Generator will add the --appdir flag directly into your script.

node app -a

Using your dotfiles

You can use the .brew file by running it as a shell script in your terminal.

sh ~/.brew

Run your Brewfile by using the new brew bundle command.

brew bundle /pathto/Brewfile

Run your CaskFile the same way:

brew bundle /pathto/CaskFile

Helpful Links

Contributing

Feel like making this better? Great. Please just add tests to any changes. You can run the tests with npm test.

They're written with testem, Mocha and Chai.

Send any pull-requests to the incoming branch please.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap