Git Workflow with Zsh: Unleashing the Power of Version Control

Photo by Andrew Neel on Unsplash

Git Workflow with Zsh: Unleashing the Power of Version Control

ยท

1 min read

Zsh (Z Shell). It's more than just a command-line shell; it's your ultimate partner for an exceptional Git workflow. Personally, I rely on Zsh every day as I work with Infrastructure-as-Code (IAC) for AWS and OCI using Terraform. When dealing with critical production environments, knowing the branch you're on is crucial. That's where Zsh comes in, offering incredible customization to display Git status information right in your command prompt.

In this article, we'll delve into the installation process of Zsh on different operating systems.

Installation steps:

  1. Install package manager :snapd

    sudo apt install snapd

  2. Install Curl

    sudo snap install curl

  3. install oh my zsh via curl or wget

    1. via curl

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

    2. via wget :
      sh -c "$(wget https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)"

  4. Change theme (optional)

    nano ~/ .zhrc
    go to ZSH_THEME
    change that to the theme of your choice
    for example: My preferred theme is af-magic

    Embark on a journey of exploration and customization with a plethora of exciting themes available at this link

ย