Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

命令行抽签,甲子灵签,也是妈祖灵签

Notifications You must be signed in to change notification settings

tutorial0/chouqian

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

2 Commits

Repository files navigation

六十甲子本地抽签工具

这是一个用于本地抽取和显示六十甲子签诗的 Python 工具。图片来自台北新莊地藏庵。本工具仅适用于 macOS 系统。

功能

  • 心里默念或抽一个六十甲子签
  • 输入数字或六十甲子,抽取六十甲子签诗。
  • 在命令行中显示对应的签诗图片。

安装要求

系统要求

  • macOS:本工具仅在 macOS 上测试通过。

依赖工具

  • iTerm2:确保你在使用 iTerm2 终端。
  • imgcat:用于在命令行中显示图片。

imgcat 安装步骤

  1. 下载imgcat脚本:

  2. 保存并设置权限:

    • imgcat脚本保存到/usr/local/bin目录。
    • 在终端运行以下命令以给予执行权限:
      chmod +x /usr/local/bin/imgcat
  3. 确保路径正确:

    • 确保/usr/local/bin在你的PATH环境变量中。如果不在,请在~/.bash_profile~/.zshrc中添加:
      export PATH="/usr/local/bin:$PATH"
    • 重新加载配置文件:
      source ~/.bash_profile
      source ~/.zshrc

使用方法

  1. 运行抽签工具:
    • 在 iTerm2 中运行chouqian.py脚本:
      python3 chouqian.py
    • 脚本将抽取相应签诗,并在命令行中显示对应的图片。

图片来源

图片来自台北新莊地藏庵的六十甲子签诗集。

About

命令行抽签,甲子灵签,也是妈祖灵签

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

AltStyle によって変換されたページ (->オリジナル) /