40 lines
945 B
Bash
40 lines
945 B
Bash
# ~/.zshrc
|
|
|
|
# May fix a scp bug or two
|
|
[ -z "$PS1" ] && return
|
|
|
|
# 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
|
|
DOTFILES=$HOME/.config/dotfiles
|
|
DISABLE_AUTO_UPDATE="true"
|
|
|
|
# Path to your oh-my-zsh configuration
|
|
ZSH=$HOME/.config/ohmyzsh
|
|
ZSH_CUSTOM=$HOME/.config/dotfiles/zsh/ohmyzsh
|
|
|
|
ZSH_THEME="laptop"
|
|
|
|
if [ -f $DOTFILES/zsh/env.zsh ]; then
|
|
source $DOTFILES/zsh/env.zsh
|
|
fi
|
|
|
|
source $DOTFILES/zsh/config.zsh
|
|
source $DOTFILES/zsh/path.zsh
|
|
source $DOTFILES/zsh/exports.zsh
|
|
source $DOTFILES/zsh/aliases.zsh
|
|
|
|
if [ -f $DOTFILES/zsh/extraconfig.zsh ]; then
|
|
source $DOTFILES/zsh/extraconfig.zsh
|
|
fi
|
|
|
|
update startup
|