haelle.oh_my_zsh
Ansible Oh-my-zsh
⚠ Change the default font in the terminal ⚠
This is an Ansible role used to install oh-my-zsh with some plugins.
This role installs Meslo LGS NF fonts for PowerLevel10k. To configure your terminal prompt, run p10k configure
(it usually runs automatically).
How to Use
<Ctrl+G>
: Opens Navi (helps you search for Unix commands)vfzf
: Opens fzf as an alias for vimCtrl-u
: Clears the current promptpp_json xxx
: Formats JSON nicelyEsc Esc
: Adds sudo to your current or previous commandsCtrl+r
: Searches through command history
Working with base64 & JWT
You can easily encode and decode base64 strings:
$ encode64 "oh-my-zsh"
b2gtbXktenNo
$ e64 "oh-my-zsh"
b2gtbXktenNo
And for JWT, you can do:
$ jwt eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c
=Header==
{
"alg": "HS256",
"typ": "JWT"
}
==Payload==
{
"sub": "1234567890",
"name": "John Doe",
"iat": 1516239022
}
Role Variables
All variables can be found in defaults/main.yml
.
users
This is required.
List of Unix users:
users:
- foo
- bar
zsh_plugins
A list of zsh plugins. You can find available plugins on the oh-my-zsh plugins page.
Plugins that add aliases and completions include:
Plugins usage examples:
- command-not-found: Provides hints when a command isn't found
- dirhistory: Adds shortcuts for navigating directory history
- fzf: Adds fzf support (default command is not set)
- gitignore: Generates gitignore files from templates!
- jsontools: Useful command line tools for JSON
- sudo: Easily add sudo to your commands by pressing esc twice
Example Playbook
- hosts: localhost
roles:
- role: oh_my_zsh
users:
- foo
Linters
To check for formatting and errors, you can use:
yamllint **/*.yml
ansible-lint **/*.yml
Development Usage
To run this role locally, create a symlink with: cd /etc/ansible/roles & sudo ln -s /path/to/oh_my_zsh .
License
BSD
TODO
- Review the readme
- Document the shortcuts
- Document the selected plugins
- Review naming conventions
Where is navi?
Installa
ansible-galaxy install haelle.oh_my_zsh
Licenza
Unknown
Download
75
Proprietario
Product Owner
RoR lover
Former C#, PHP7, Python, SQL developper