From dcebe1e7c260b7535332839467a843e9fc82334b Mon Sep 17 00:00:00 2001 From: sup39 Date: Tue, 12 May 2020 21:23:21 +0900 Subject: [PATCH] auto source zshrc in setup.sh --- README.md | 1 + setup.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/README.md b/README.md index c0e3ded..f476d90 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,7 @@ curl -L pr8.work/0/sup39-zsh | sh - ### zshrc only ```zsh curl https://raw.githubusercontent.com/sup39/zsh-setup/master/zshrc >> $HOME/.zshrc +source $HOME/.zshrc ``` ## Content diff --git a/setup.sh b/setup.sh index c81a025..56f312d 100644 --- a/setup.sh +++ b/setup.sh @@ -1,6 +1,7 @@ #!/bin/sh # .zshrc curl https://raw.githubusercontent.com/sup39/zsh-setup/master/zshrc -o $HOME/.zshrc +[ $SHELL = "/bin/zsh" ] && . $HOME/.zshrc # auto source zshrc # .vim/sup39 [ -d $HOME/.vim/sup39 ] || git clone https://github.com/sup39/vimrc $HOME/.vim/sup39 # .vimrc