-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup_zsh.sh
executable file
·33 lines (24 loc) · 825 Bytes
/
setup_zsh.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/usr/bin/env zsh
##
# zsh
# https://github.com/sorin-ionescu/prezto
# Launch Zsh
# zsh
# install prezto
#git clone --recursive -b my-mac https://github.com/xg-wang/prezto.git "${ZDOTDIR:-$HOME}/.zprezto"
ln -sf $HOME/dotfiles/.zprezto ${ZDOTDIR:-$HOME}/.zprezto
setopt EXTENDED_GLOB
for rcfile in "${ZDOTDIR:-$HOME}"/.zprezto/runcoms/^README.md(.N); do
ln -fs "$rcfile" "${ZDOTDIR:-$HOME}/.${rcfile:t}"
done
ln -sf $HOME/dotfiles/assets/zshrc.mine $HOME/.zshrc.mine
source ~/.zshrc
# Enable Zprezto contrib modules
cd $ZPREZTODIR
git remote add upstream https://github.com/sorin-ionescu/prezto.git
git clone https://github.com/belak/prezto-contrib contrib
cd contrib
git submodule init
git submodule update
# fzf https://github.com/junegunn/fzf?tab=readme-ov-file#using-homebrew
$(brew --prefix)/opt/fzf/install