linux_wiki:zsh_and_oh-my-zsh

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
linux_wiki:zsh_and_oh-my-zsh [2018/08/02 22:40]
billdozor [Install Powerline Fonts]
linux_wiki:zsh_and_oh-my-zsh [2018/08/14 09:44]
billdozor [Install Fonts: Windows]
Line 50: Line 50:
  
 Easily change your zsh theme. Easily change your zsh theme.
 +  * List of all theme names/screenshots here: https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
 +  * Agnoster theme: https://github.com/agnoster/agnoster-zsh-theme
  
-List of all theme names/screenshots here: https://github.com/robbyrussell/oh-my-zsh/wiki/Themes +\\ 
 +Example: Change to agnoster theme
   * Edit zsh config<code bash>vim ~/.zshrc   * Edit zsh config<code bash>vim ~/.zshrc
  
Line 58: Line 60:
 ZSH_THEME="agnoster"</code> ZSH_THEME="agnoster"</code>
   * Re-read config changes<code bash>source ~/.zshrc</code>   * Re-read config changes<code bash>source ~/.zshrc</code>
 +    * **Note**: The agnoster theme relies upon Powerline fonts for certain symbols. See next section in order to install the font.
  
 ---- ----
Line 64: Line 67:
  
 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. 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<code bash>git clone https://github.com/powerline/fonts.git</code>   * Clone the repo<code bash>git clone https://github.com/powerline/fonts.git</code>
Line 70: Line 75:
   * Quit your terminal and re-open it   * Quit your terminal and re-open it
   * Configure your terminal to use a PowerLine regular font   * Configure your terminal to use a PowerLine regular font
-    * GNOME Terminal+    * **GNOME Terminal**
       * Edit > Profile Preferences       * Edit > Profile Preferences
       * Check "Custom font", then click the font name       * Check "Custom font", then click the font name
       * Browse to and select a Powerline font (such as "Meslo LG L for Powerline Regular")       * Browse to and select a Powerline font (such as "Meslo LG L for Powerline Regular")
-    * Konsole (KDE Terminal)+    * **Konsole (KDE Terminal)**
       * Settings > Manage Profiles       * Settings > Manage Profiles
       * Click either "Edit Profile" or "New Profile"       * Click either "Edit Profile" or "New Profile"
Line 81: Line 86:
         * Click "OK"         * Click "OK"
  
 +\\
 **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) **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://github.com/powerline/fonts
 +  * Click the "Clone or download" drop down, then click "Download ZIP"
 +  * Extract somewhere temporary
 +  * Copy and paste all of the .ttf files from "Meslo Slashed" into C:\Windows\Fonts\
 +    * You will be prompted if you would like to install the fonts
 +
 +\\
 +  * **Configure Putty/Kitty** to use the new font
 +    * Open Putty/Kitty (optionally, load a saved session's settings)
 +    * Settings > Window > Appearance
 +      * Under Font settings
 +        * Check the box "Allow selection of variable-pitch fonts"
 +        * Click the "Change" button
 +        * Browse to "Meslo LG L for Powerline" and click "OK"
 +      * Save the session settings
 +
 +\\
 +  * **Configure colors** (Solarized Dark)
 +    * Open Putty/Kitty (optionally, load a saved session's settings)
 +    * Settings > Window > Colours
 +      * Select each color to adjust and change the RGB values<code bash>
 +</code>
 +      * Click Apply
 +      * Save settings to session
 +    * Alternative registry imports: https://github.com/altercation/solarized/tree/master/putty-colors-solarized
  
 ---- ----
  • linux_wiki/zsh_and_oh-my-zsh.txt
  • Last modified: 2019/05/25 23:50
  • (external edit)