homebrew-alfredManage Alfred with @Homebrew.

联合创作 · 2023-09-29 04:18

Homebrew + Alfred

Manage Alfred with Homebrew.

Workflows require the paid Powerpack upgrade.

Install

brew tap danielbayley/alfred
brew alfred install #workflow #theme

or with brew bundle using a Brewfile:

# Brewfile
tap "danielbayley/alfred"
cask "alfred-theme"
# App dependency already installed independently.
alfred "alfred-workflow", args: { "skip-cask-deps": true }

Contribute

git config core.hooksPath .github/hooks and follow the contribution guide, or copy and adapt an existing Cask.

Because Alfred preferences can be synced, the following Ruby code is necessary to install the workflow into the correct folder:

require_relative "../cmd/brew-alfred"
artifact staged_path, target: "#{HOMEBREW_ALFRED_WORKFLOW_PREFIX}.#{token}"

or with slightly different code for themes:

theme = "#{HOMEBREW_ALFRED_THEME_PREFIX}.#{token}"
artifact "theme.json", target: "#{theme}/theme.json"

uninstall rmdir: theme

License

MIT © Daniel Bayley

浏览 3
点赞
评论
收藏
分享

手机扫一扫分享

编辑
举报
评论
图片
表情
推荐
点赞
评论
收藏
分享

手机扫一扫分享

编辑
举报