Skip to content

axemorgan/zsh-configuration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zsh-configuration

This is the repo where I keep my custom Oh My Zsh configuration directory.

Setup

  1. Install OMZ
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
  1. After installation, remove everything from the OMZ custom directory (located at $ZSH_CUSTOM).
  2. Clone this repo into the empty custom directory. (If you're not me, you probably want to fork it instead, or take the files and start a new repo for yourself.)
  3. Add symbolic links to your home directory for the .zshrc and .zprofile files. This will point them to the versions from the repo.
ln -s $ZSH_CUSTOM/.zprofile $HOME/.zprofile
ln -s $ZSH_CUSTOM/.zshrc $HOME/.zshrc
  1. Init any git submodules included in the plugins directory
git submodule init $ZSH_CUSTOM/plugins/<path to plugin directory>
git submodule update $ZSH_CUSTOM/plugins/<path to plugin directory>

Git Submodules for Custom Plugins

When adding custom plugins to $ZSH_CUSTOM/plugins that come from other git repositories, it's best to include them add a Git Submodule for ease of updating, and to keep it separate from this repo's history.

git submodule add <path to repo.git> $ZSH_CUSTOM/plugins
git submodule init <path to plugin directory>

About

Custom directory for zsh

Topics

Resources

License

Stars

Watchers

Forks

Languages