Differences
This shows you the differences between two versions of the page.
linux_wiki:zsh_and_oh-my-zsh [2018/08/02 22:40] billdozor [Install Powerline Fonts] |
linux_wiki:zsh_and_oh-my-zsh [2019/05/25 23:50] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Zsh And Oh-my-zsh ====== | ||
- | |||
- | **General Information** | ||
- | |||
- | Setting up great looking terminals with zsh, oh-my-zsh and theming. | ||
- | |||
- | **Checklist** | ||
- | * Fedora 28, Ubuntu 16.04 or Enterprise Linux 7 | ||
- | |||
- | ---- | ||
- | |||
- | ====== Install ZSH ====== | ||
- | |||
- | Install zsh. | ||
- | * Fedora< | ||
- | * Ubuntu< | ||
- | * EL 7<code bash> | ||
- | |||
- | ===== Set ZSH As Default Login Shell ===== | ||
- | |||
- | Configure zsh as your default login shell. | ||
- | * Fedora, Ubuntu, EL 7 | ||
- | * Change shell< | ||
- | * Log out and back in | ||
- | * Verify< | ||
- | |||
- | **Note**: This only works for local accounts. If you are using LDAP, you will need to set your default login shell in your LDAP user profile. | ||
- | |||
- | ---- | ||
- | |||
- | ====== Install oh-my-zsh ====== | ||
- | |||
- | Oh-My-Zsh is a framework for managing zsh configuration. It adds tons of themes and plugins to zsh. | ||
- | |||
- | Official site: https:// | ||
- | |||
- | * Install pre-reqs (git and curl) | ||
- | * Fedora< | ||
- | * Ubuntu< | ||
- | * EL 7<code bash> | ||
- | * Install oh-my-zsh< | ||
- | |||
- | ---- | ||
- | |||
- | ====== Configure Zsh ====== | ||
- | |||
- | Configuring zsh. | ||
- | |||
- | ===== Change Theme ===== | ||
- | |||
- | Easily change your zsh theme. | ||
- | |||
- | List of all theme names/ | ||
- | |||
- | * Edit zsh config< | ||
- | |||
- | # Set theme name here | ||
- | ZSH_THEME=" | ||
- | * Re-read config changes< | ||
- | |||
- | ---- | ||
- | |||
- | ===== Install Powerline Fonts ===== | ||
- | |||
- | The powerline fonts are intended for use with the agnoster theme (they properly display certain symbols that it uses), but are a clean looking set of fonts that would be a great addition any in case. | ||
- | |||
- | * Clone the repo< | ||
- | * Install< | ||
- | ./ | ||
- | * Quit your terminal and re-open it | ||
- | * Configure your terminal to use a PowerLine regular font | ||
- | * GNOME Terminal | ||
- | * Edit > Profile Preferences | ||
- | * Check " | ||
- | * Browse to and select a Powerline font (such as "Meslo LG L for Powerline Regular" | ||
- | * Konsole (KDE Terminal) | ||
- | * Settings > Manage Profiles | ||
- | * Click either "Edit Profile" | ||
- | * Click the " | ||
- | * Browse to and select a Powerline font. (such as "Meslo LG L for Powerline" | ||
- | * Click " | ||
- | |||
- | **Note**: If Symbols aren't displaying properly, close the terminal application and re-open it for the fonts to load. (And verify you are using a Powerline font) | ||
- | |||
- | ---- | ||
- | |||
- | ===== Install Plugin: Syntax Highlighter ===== | ||
- | |||
- | The syntax highlighter plugin adds syntax highlighting to the commands you are typing. | ||
- | |||
- | * Clone the repo< | ||
- | * Copy or move it into your oh-my-zsh plugins directory< | ||
- | * Enable the plugin in your zshrc config< | ||
- | |||
- | # Add plugins to enable space separated | ||
- | plugins=(git python vi-mode z zsh-syntax-highlighting)</ | ||
- | * Re-read config file< | ||
- | |||
- | ---- | ||