Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
zshrc_file="$HOME/.zshrc"
omz_custom_plugin_home=${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins
append_plugin_to_zshrc() {
# The plugin to add
local new_plugin=$1
# Check if the .zshrc file exists