Title: Oh-My-ZSH
Author: Immanuel Raj
Published: January 11, 2024
Last modified: February 15, 2025

---

![oh my zsh](https://immanuelraj.dev/wp-content/uploads/2024/01/oh-my-zsh.webp)

# Oh-My-ZSH

[January 11, 2024](https://immanuelraj.dev/oh-my-zsh/)

—

by

[Immanuel Raj](https://immanuelraj.dev/author/iamimmanuelraj/)

in [Linux](https://immanuelraj.dev/category/linux/), [Terminal](https://immanuelraj.dev/category/terminal/),
[Tools](https://immanuelraj.dev/category/tools/)

Read Time

1–2 minutes

Oh My Zsh is a delightful, open source, community-driven framework for managing 
your Zsh configuration. It comes bundled with thousands of helpful functions, helpers,
plugins, themes, and a few things that make you shout….

## Installing OH My ZSH

Oh My ZSH is installed by running one of the following commands in your terminal.
You can install this via the command-line with either curl or wget.

#### Curl

    ```wp-block-code
    sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
    ```

#### Wget

    ```wp-block-code
    sh -c "$(wget https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)"
    ```

If you are on a fresh installation of mac, then it will install some terminal tools.
If your in other OS it may need some other dependency as well

### Oh My ZSH Themes

OMZ [Oh-My-ZSH] supports many themes and plugins. These can be installed, set and
used by the following commands.

    ```wp-block-code
    omz theme set|use <theme name>
    ```

### Example

    ```wp-block-code
    - omz theme set gnzh
    - omz theme use gnzh
    ```

### Alias

OMZ allow setting of alliases in the zsh config file [.zshrc] itself. You can open
the .zshrc file which is in the home folder and then go to the alias part and then
add a alias you want. If the alias part does not exist then you can simply add it
in the end of the file.

    ```wp-block-code
    # Custom made Alias.
    alias curlx="curl -XGET -IL"
    ```

and then save it. You may need to restart your shell [sometimes logout and login
or restart the system]

### Oh My ZSH Plugins

Now we can move to installing plugins, another interesting thing by omz.

To do so

    ```wp-block-code
    omz plugin load <plugin name>
    ```

and then

    ```wp-block-code
    omz enable <plugin name>
    ```

 will do the job.

### Example

    ```wp-block-code
    - omz plugin load tmux
    - omz plugin enable tmux
    ```

You need to have tmux installed for this to work.

### Customizing Tmux

Tmux allow multiple customization. We shall customise the default key binding of
the tmux from `Ctrl + B` to `Ctrl + r`

To do it.

    ```wp-block-code
    - nano ~/.tmux.conf

    # Change the prefix key to C-a
    - set -g prefix C-a
    - unbind C-b
    - bind C-a send-prefix
    ```

Save and relaunch terminal and tmux

[omz](https://immanuelraj.dev/tags/omz/) [productivity](https://immanuelraj.dev/tags/productivity/)
[ssl](https://immanuelraj.dev/tags/ssl/) [terminal](https://immanuelraj.dev/tags/terminal/)
[terminal tools](https://immanuelraj.dev/tags/terminal-tools/) [tools](https://immanuelraj.dev/tags/tools/)
[ubuntu](https://immanuelraj.dev/tags/ubuntu/)

[Previous:  How to Speed Up Windows 10: Advanced Boot Optimization (Part 3)](https://immanuelraj.dev/how-to-speed-up-windows-part-3/)

[Next:  Step-by-Step Guide to Configuring Nginx and PHP-FPM on Ubuntu](https://immanuelraj.dev/nginx-and-php-fpm-setup/)

![Immanuel Raj Avatar](https://secure.gravatar.com/avatar/88db6e1fa27cf854075acbaa156189ace30cf3701b2d8640cd774280ead1d4d3?
s=80&d=mm&r=g)

## About the author

Software Developer & Technology Consultant

---

## Popular Categories

 * [Bible](https://immanuelraj.dev/category/bible/) (1)
 * [Cloudflare](https://immanuelraj.dev/category/cloudflare/) (1)
 * [Databases](https://immanuelraj.dev/category/databases/) (1)
 * [Docker](https://immanuelraj.dev/category/docker/) (1)
 * [Email](https://immanuelraj.dev/category/email/) (1)
 * [ERPNext](https://immanuelraj.dev/category/erpnext/) (3)
 * [Frappe](https://immanuelraj.dev/category/frappe/) (2)
 * [Github Actins](https://immanuelraj.dev/category/github-actins/) (1)
 * [God](https://immanuelraj.dev/category/god/) (1)
 * [Google Cloud](https://immanuelraj.dev/category/gcp/) (1)
 * [Hosting](https://immanuelraj.dev/category/hosting/) (2)
 * [Life](https://immanuelraj.dev/category/life/) (1)
 * [Linux](https://immanuelraj.dev/category/linux/) (13)
 * [ML](https://immanuelraj.dev/category/ml/) (1)
 * [Networking](https://immanuelraj.dev/category/networking/) (2)
 * [Security](https://immanuelraj.dev/category/security/) (2)
 * [Self Hosting](https://immanuelraj.dev/category/self-hosting/) (7)
 * [SSL](https://immanuelraj.dev/category/ssl/) (3)
 * [Terminal](https://immanuelraj.dev/category/terminal/) (1)
 * [Tools](https://immanuelraj.dev/category/tools/) (2)
 * [Uncategorized](https://immanuelraj.dev/category/uncategorized/) (8)
 * [Web](https://immanuelraj.dev/category/web/) (2)
 * [WordPress](https://immanuelraj.dev/category/wordpress/) (1)

---

## Useful Links

Links I found useful and wanted to share.

 * [Sponsor Me](https://github.com/sponsors/iamimmanuelraj)

---

## Search the website

Search