Skip to content

Instantly share code, notes, and snippets.

@karldreher
Last active June 28, 2022 23:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save karldreher/0d3f6ab497385d73e482151ca9535ea4 to your computer and use it in GitHub Desktop.
Save karldreher/0d3f6ab497385d73e482151ca9535ea4 to your computer and use it in GitHub Desktop.

Intro to Oh-My-Zsh

Setup

Install: Copy & paste the command from the official page.
(You must be in zsh already for this to work)

https://ohmyz.sh/#install

Configuration

.zshrc is essentially the config file. You are intended to customize this how you like it.
If it changes, you can reload the shell by typing zsh.

It may be helpful for you to commit this to a personal repo, so you can have a consistent experience among different machines.

Themes

Themes can be used to make the shell comfortable and convenient for you!
You can try a few and see how you like them. This should be a personal preference.

Preview most of the themes here: https://github.com/ohmyzsh/ohmyzsh/wiki/themes

Temporary Testing:

omz theme list
omz theme use my-cool-theme

In case of panic: just run zsh to go back to your theme set in .zshrc.

To set permanently in .zshrc: ZSH_THEME="my-cool-theme"

Plugins

Git - Absolute must have, integrates easy with most themes.

Venv-wrapper : Not standard plugin, so you may need to clone https://github.com/glostis/venv-wrapper.git to ~/.oh-my-zsh/plugins/

git clone https://github.com/glostis/venv-wrapper.git ~/.oh-my-zsh/plugins/venv-wrapper

Other options exist. This is the one which works for me.

Enabling Plugins

Set them in an array in your .zshrc:

plugins=(git venv-wrapper)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment