jebovic.ohmyzsh

OhMyZsh

构建状态 Ansible Galaxy

为多个用户安装和配置 Oh My Zsh

这个角色是我 OPS 项目 的一部分,点击此链接可以查看实例。OPS 提供了很多内容,比如用于开发虚拟机的 vagrant 文件、角色编排的剧本、清单文件、角色配置示例、ansible 配置文件等。

兼容性

经过测试并在以下系统上通过:

  • Debian jessie (8+)
  • Ubuntu Trusty (14.04 LTS)
  • Ubuntu Xenial (16.04 LTS)

要求

需要先安装 zsh

角色变量

# 选择要为其安装 oh my zsh 的用户
ohmyzsh_users:
  - username: ops
    usergroup: admin
    home: /home/ops
  - username: root
    usergroup: root
    home: /root

ohmyzsh_plugins: git colored-man-page colorize extract history npm symfony2 httpie zsh-syntax-highlighting

示例剧本

- hosts: servers
  roles:
     - { role: jebovic.ohmyzsh }

示例:配置

# 为您的用户配置 oh-my-zsh
ohmyzsh_users:
  - username: me
    usergroup: me
    home: /home/me
ohmyzsh_plugins: git colored-man-page colorize extract history zsh-syntax-highlighting

标签

  • ohmyzsh_config : 仅更新配置

许可证

MIT

作者信息

Jérémy Baumgarth https://github.com/jebovic

关于项目

Install and configure Oh My Zsh for your personal user

安装
ansible-galaxy install jebovic.ohmyzsh
许可证
mit
下载
243