Migrates oh-my-zsh to ohmyzsh

This commit is contained in:
Thomas Forgione 2020-01-29 11:19:53 +01:00
parent 7f5c6be48e
commit 7af74e7570
1 changed files with 11 additions and 1 deletions

12
zshrc
View File

@ -1,11 +1,21 @@
# ~/.zshrc # ~/.zshrc
# Migrates from robbyrussell/oh-my-zsh to ohmyzsh/ohmyzsh
# This only needs to stay here temporarily until everyone executed it.
if [ -d $HOME/.config/oh-my-zsh ]; then
local oldwd=$PWD
mv $HOME/.config/oh-my-zsh/ $HOME/.config/ohmyzsh
cd $HOME/.config/ohmyzsh
git remote set-url origin https://github.com/ohmyzsh/ohmyzsh
cd $oldpw
fi
# Path to the dotfiles # Path to the dotfiles
DOTFILES=$HOME/.config/dotfiles DOTFILES=$HOME/.config/dotfiles
DISABLE_AUTO_UPDATE="true" DISABLE_AUTO_UPDATE="true"
# Path to your oh-my-zsh configuration # Path to your oh-my-zsh configuration
ZSH=$HOME/.config/oh-my-zsh ZSH=$HOME/.config/ohmyzsh
ZSH_CUSTOM=$HOME/.config/dotfiles/zsh/ohmyzsh ZSH_CUSTOM=$HOME/.config/dotfiles/zsh/ohmyzsh
ZSH_THEME="laptop" ZSH_THEME="laptop"