From e941d2fb05842a8613e32233048cd58af81b7fc4 Mon Sep 17 00:00:00 2001 From: Jake Runyan Date: Mon, 9 Sep 2024 17:02:48 -0700 Subject: [PATCH] Add ohmyzsh --- ohmyzsh/README.md | 29 +++++++++++++++++++++++++++++ ohmyzsh/zshrc | 9 +++++++++ 2 files changed, 38 insertions(+) create mode 100644 ohmyzsh/README.md create mode 100644 ohmyzsh/zshrc diff --git a/ohmyzsh/README.md b/ohmyzsh/README.md new file mode 100644 index 0000000..7876e60 --- /dev/null +++ b/ohmyzsh/README.md @@ -0,0 +1,29 @@ +# ohmyzsh +My ohmyzsh config. + +## Prerequisites +1. Install zsh. It should come by default with MacOS, else get it thru homebrew. +``` +sudo apt get install zsh +``` +2. Set zsh as default shell +``` +chsh -s /bin/zsh +``` + +## Installation +1. Install omz +``` +sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" +``` +2. Remove the generated zshrc and link the one in this repo as a replacement. Note the file in this repo isn't hidden. +``` +rm ~/.zshrc +ln -sfn /path/to/dotfiles/ohmyzsh/zshrc ~/.zshrc +``` +3. Source ~/.zshrc or restart the terminal. +``` +source ~/.zshrc +``` + + diff --git a/ohmyzsh/zshrc b/ohmyzsh/zshrc new file mode 100644 index 0000000..ecfcb76 --- /dev/null +++ b/ohmyzsh/zshrc @@ -0,0 +1,9 @@ +export ZSH="$HOME/.oh-my-zsh" +ZSH_THEME="robbyrussell" + +zstyle ':omz:update' frequency 7 + +plugins=(git) + +source $ZSH/oh-my-zsh.sh +