Skip to content

Instantly share code, notes, and snippets.

@sahiljhawar
sahiljhawar / .zshrc
Created May 22, 2024 09:31
ZSH plugins without oh-my-zsh
# This zshrc file is for people who can run zsh but are not able to or allowed to install oh-my-zsh and plugins therein.
# zinit skips the omz part and allows you to install all the plugins directly.
# This script is entirely based on this video: https://www.youtube.com/watch?v=ud7YxC33Z3w
# make changes as per your requirements.
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"