|
| 1 | +# This course covers: |
| 2 | + - Installing and configuring OH MY ZSH |
| 3 | + - Customizing ZSH themes and plugins |
| 4 | + - Productivity tips for terminal users |
| 5 | + |
| 6 | +## Requirements |
| 7 | + - Familiar with Bash, Terminal & Commands |
| 8 | + |
| 9 | +### What is Zsh? |
| 10 | + <q>Zsh or Zshell is an enhanced, improved, and extended version of BASH (Bourne Again Shell).</q> |
| 11 | + |
| 12 | +### Why Oh My Zsh? |
| 13 | + <code>Oh My Zsh</code> is an open-source framework used to customize zsh as well as manage its configs. |
| 14 | + |
| 15 | +## Steps Performed: |
| 16 | +--- |
| 17 | + |
| 18 | +### ZSH Installation |
| 19 | +Installation may differ according to your OS. [See here](https://github.com/ohmyzsh/ohmyzsh/wiki/Installing-ZSH) |
| 20 | + |
| 21 | +**For Ubuntu**: <code>$ sudo apt install zsh</code> |
| 22 | + |
| 23 | +### Oh-My-Zsh Installation |
| 24 | +Install **Oh-My-Zsh** according to your OS or distro. [See here](https://ohmyz.sh/#install) |
| 25 | + |
| 26 | +**For Ubuntu**: <code>$ sh -c $(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)</code> |
| 27 | + |
| 28 | +### Zsh Configuration |
| 29 | + |
| 30 | + |
| 31 | +Boom! Now, your .zshrc <i>(source file for zshell launch)</i> has been replaced by a new .zshrc file <i>(in your home dir or where you've installed it)</i>. The original .zshrc is kept as a backup file. |
| 32 | + |
| 33 | +#### Themes |
| 34 | +The first thing I'd ever do is to change my terminal theme as I like. So, let's explore what will suit us? |
| 35 | +**Editing <q>.zshrc</q> file** |
| 36 | +Go to <code>~</code> <i>(home dir or where you've installed it)</i> |
| 37 | +I performed: <code>$ cd ~</code> |
| 38 | +Choose your favorite editor and edit the **.zshrc** file. |
| 39 | +I performed: <code>$ nano .zshrc</code> |
| 40 | +To change the theme you need to change the value of <q>ZSH_THEME</q>. |
| 41 | +For exploring themes, I placed <q>random</q>. So that, it will launch with any random theme at every instance. |
| 42 | +If you've chosen one, just edit ~/.zshrc file and change the value of <q>ZSH_THEME</q> with the theme you want. |
| 43 | +I changed <code>ZSH_THEME="devcontainers"</code> to <code>ZSH_THEME="fino"</code>. |
| 44 | + |
| 45 | +#### Auto-Suggestions |
| 46 | +This plugin suggests commands based on your past history, saving you both effort and time. |
| 47 | +**Installing <q>Auto-Suggestions</q> plugin** |
| 48 | +Clone GitHub repository to install it: <code>git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions</code>. |
| 49 | +After installing, again edit your **.zshrc** file and look for <q>plugins</q> config, and change <code># plugins=(git)</code> to <code>plugins=(git zsh-autosuggestions)</code>. |
| 50 | + |
| 51 | +IMPORTANT: <i>See changes done by using zsh to launch again with new config(s).</i> |
| 52 | + |
| 53 | +**Thank You! Jay Nepal!** |
0 commit comments