Skip to content

Commit

Permalink
add init script
Browse files Browse the repository at this point in the history
  • Loading branch information
slme9364 committed Feb 2, 2021
1 parent 348d9c2 commit f42fa2d
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
20 changes: 20 additions & 0 deletions init.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#bin/sh

if [[ -x $(which brew) ]]; then
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
fi

mkdir -p ~/.config


if [[ -x $(which zsh) ]]; then
brew install zsh
fi


if [ ! -e $HOME"/.zplug" ]; then
curl -sL --proto-redir -all,https https://raw.githubusercontent.com/zplug/installer/master/installer.zsh | zsh
fi

source ~/.zplug/init.zsh

10 changes: 10 additions & 0 deletions link.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!bin/sh

ln -s zsh/.zshrc ~/.zshrc
ln -s zsh/.zshenv ~/.zshenv
ln -s vim/nvim ~/.config/nvim
ln -s vim/.ideavimrc ~/.ideavimrc
ln -s vim/.vimrc.keymap ~/.vimrc.keymap
ln -s git/.gitconfig ~/.gitconfig
ln -s tmux/.tmux.conf ~/.tmux.conf

0 comments on commit f42fa2d

Please sign in to comment.