Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
linux_wiki:zsh_and_oh-my-zsh [2018/07/28 16:00] billdozor created |
linux_wiki:zsh_and_oh-my-zsh [2018/08/14 09:44] billdozor [Install Fonts: Windows] |
||
---|---|---|---|
Line 40: | Line 40: | ||
* EL 7<code bash> | * EL 7<code bash> | ||
* Install oh-my-zsh< | * Install oh-my-zsh< | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ====== Configure Zsh ====== | ||
+ | |||
+ | Configuring zsh. | ||
+ | |||
+ | ===== Change Theme ===== | ||
+ | |||
+ | Easily change your zsh theme. | ||
+ | * List of all theme names/ | ||
+ | * Agnoster theme: https:// | ||
+ | |||
+ | \\ | ||
+ | Example: Change to agnoster theme | ||
+ | * Edit zsh config< | ||
+ | |||
+ | # Set theme name here | ||
+ | ZSH_THEME=" | ||
+ | * Re-read config changes< | ||
+ | * **Note**: The agnoster theme relies upon Powerline fonts for certain symbols. See next section in order to install the font. | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== 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. | ||
+ | |||
+ | ==== Install Fonts: Linux ==== | ||
+ | |||
+ | * 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 Fonts: Windows ==== | ||
+ | |||
+ | * Open a web browser to the git repo: https:// | ||
+ | * Click the "Clone or download" | ||
+ | * Extract somewhere temporary | ||
+ | * Copy and paste all of the .ttf files from "Meslo Slashed" | ||
+ | * You will be prompted if you would like to install the fonts | ||
+ | |||
+ | \\ | ||
+ | * **Configure Putty/ | ||
+ | * Open Putty/Kitty (optionally, | ||
+ | * Settings > Window > Appearance | ||
+ | * Under Font settings | ||
+ | * Check the box "Allow selection of variable-pitch fonts" | ||
+ | * Click the " | ||
+ | * Browse to "Meslo LG L for Powerline" | ||
+ | * Save the session settings | ||
+ | |||
+ | \\ | ||
+ | * **Configure colors** (Solarized Dark) | ||
+ | * Open Putty/Kitty (optionally, | ||
+ | * Settings > Window > Colours | ||
+ | * Select each color to adjust and change the RGB values< | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | </ | ||
+ | * Click Apply | ||
+ | * Save settings to session | ||
+ | * Alternative registry imports: https:// | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== 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< | ||
---- | ---- | ||