oh_my_zsh
Ansible Oh-my-zsh
⚠ Change the default font in the terminal ⚠
An Ansible role to install oh-my-zsh with few plugins.
This role install Meslo LGS NF fonts for PowerLevel10k, run p10k configure
in
the terminal to configure the prompt (it should run automatically)
Usages
<Ctrl+G>
: trigger Navi (help to search for unix commands)- fzf alias to vim:
vfzf
Ctrl-u
: clear current promptpp_json xxx
: pretty print JSONEsc Esc
: prefix your current or previous commands with sudoCtrl+r
: history search
base64 & JWT
Encode & decode base64 strings :
$ encode64 "oh-my-zsh"
b2gtbXktenNo
$ e64 "oh-my-zsh"
b2gtbXktenNo
And for JWT directly :
$ jwt eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c
=Header==
{
"alg": "HS256",
"typ": "JWT"
}
==Payload==
{
"sub": "1234567890",
"name": "John Doe",
"iat": 1516239022
}
Role Variables
All variables are in defaults/main.yml
.
users
This is mandatory.
List of Unix users:
users:
- foo
- bar
zsh_plugins
List of zsh plugins, available plugins are listed on oh-my-zsh plugins page
Plugins that adds aliases & completions :
Plugins usage :
- command-not-found : show a hint when a command is not found
- dirhistory : This plugin adds keyboard shortcuts for navigating directory history and hierarchy.
- fzf : add fzf support (no default command set)
- gitignore : can generate gitignore from templates !
- jsontools : usefull json tools command line
- sudo : Easily prefix your current or previous commands with sudo by pressing esc twice
Example Playbook
- hosts: localhost
roles:
- role: oh_my_zsh
users:
- foo
Linters
yamllint **/*.yml
ansible-lint **/*.yml
Development usage
To run it locally create a symlink : cd /etc/ansible/roles & sudo ln -s /path/to/oh_my_zsh .
License
BSD
TODO
revoir le readme documenter les raccourci documenter les plugins choisi repasser sur le nommage
where is navi ?
Install
ansible-galaxy install Haelle/oh_my_zsh
License
Unknown
Downloads
66
Owner
Product Owner
RoR lover
Former C#, PHP7, Python, SQL developper