-
Notifications
You must be signed in to change notification settings - Fork 1
/
install.sh
executable file
·24 lines (18 loc) · 1.01 KB
/
install.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
# prezto & base config
git clone --recursive https://github.com/sorin-ionescu/prezto.git "${ZDOTDIR:-$HOME}/.zprezto" 2> /dev/null || (cd "${ZDOTDIR:-$HOME}/.zprezto" ; git pull)
ln -sf "${ZDOTDIR:-$HOME}/.zprezto/zlogin" $HOME/.zlogin
ln -sf "${ZDOTDIR:-$HOME}/.zprezto/zshenv" $HOME/.zshenv
SCRIPT=$(readlink -f "$0")
BASEDIR=$(dirname "$SCRIPT")
ln -sf ${BASEDIR}/linux/personal_config/files/p10k.zsh.sh ${HOME}/.p10k.zsh
ln -sf ${BASEDIR}/linux/personal_config/files/zpreztorc.sh ${HOME}/.zpreztorc
ln -sf ${BASEDIR}/linux/personal_config/files/zshrc.sh ${HOME}/.zshrc
# install fzf
git clone --depth 1 https://github.com/junegunn/fzf.git --branch 0.40.0 ~/.fzf
~/.fzf/install --all --no-bash
chsh --shell /usr/bin/zsh
# git config
git config --global advice.addEmptyPathspec false
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
git config --global pull.rebase true
git config --global push.default current