Uses zshrc instead of modifying existing one
This commit is contained in:
parent
b87b7c6cd1
commit
2aa001f88d
2 changed files with 16 additions and 4 deletions
12
zsh/.zshrc
Normal file
12
zsh/.zshrc
Normal file
|
@ -0,0 +1,12 @@
|
|||
export ZSH=$HOME/.oh-my-zsh
|
||||
|
||||
ZSH_THEME="kardan"
|
||||
|
||||
ENABLE_CORRECTION="true"
|
||||
COMPLETION_WAITING_DOTS="true"
|
||||
|
||||
plugins=(git zsh-autosuggestions)
|
||||
|
||||
source $ZSH/oh-my-zsh.sh
|
||||
|
||||
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
|
|
@ -27,13 +27,13 @@ if [ -d ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions ]; then
|
|||
else
|
||||
echo "🤩 Installing zsh-autosuggestions"
|
||||
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
|
||||
sed -ri 's/plugins=\((.*?)\)/plugins=\(git zsh-autosuggestions\)/g' ~/.zshrc
|
||||
echo "👍 zsh-autosuggestions Installed"
|
||||
fi
|
||||
|
||||
echo "🦄 Setting oh-my-zsh theme"
|
||||
sed -ri 's/ZSH_THEME="(.*?)"/ZSH_THEME="kardan"/g' ~/.zshrc
|
||||
echo "👍 Set oh-my-zsh theme"
|
||||
echo "🦄 Symlinking Zsh configuration"
|
||||
rm ~/.zshrc
|
||||
ln -s ~/dotfiles/zsh/.zshrc ~/.zshrc
|
||||
echo "👍 Symlinked Zsh configuration"
|
||||
|
||||
source ~/.zshrc
|
||||
echo "👍 Sourced updated zshrc"
|
||||
|
|
Loading…
Add table
Reference in a new issue