🧐
/
ðŸŠī ⏐ Other Apps
/
4. Oh My Zsh

oh my zsh

Enhance your terminal experience with oh my zsh, a framework for managing zsh configuration.

Install it via Terminal and customize it with themes and plugins.

Type this command to see your actual configuration:

echo $SHELL 

If the output is /bin/bash you can use Oh My Bash.

oh my zsh Configuration

Customize oh my zsh with preferred plugins and themes.

Run this to install oh my zsh:

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

Create or edit the .zshrc file to include useful aliases and settings.

Here is mine .zshrc file:

export ZSH="$HOME/.oh-my-zsh"

ZSH_THEME="robbyrussell"
CASE_SENSITIVE="true"
ENABLE_CORRECTION="true"

plugins=(git)

source $ZSH/oh-my-zsh.sh

export EDITOR='nano'

# -------
# Aliases
# -------
alias l="ls" # List files in current directory
alias ll="ls -al" # List all files in current directory in long list format
alias o="open ." # Open the current directory in Finder

# ----------------------
# Git Aliases
# ----------------------
alias gaa='git add .'
alias gcm='git commit -m'
alias gpsh='git push'
alias gss='git status -s'
alias gs='echo ""; echo "*********************************************"; echo -e "   DO NOT FORGET TO PULL BEFORE COMMITTING"; echo "*********************************************"; echo ""; git status'
Last updated on June 11, 2024