-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.sh
executable file
·76 lines (58 loc) · 2.13 KB
/
setup.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#!/bin/bash
# Enable debug output
PS4="\n\033[1;33m>>\033[0m "; set -x
LOCATION=$(realpath "$0")
DIR=$(dirname "$LOCATION")
# Cache sudo credential
sudo -v
datetime=$(date +'%Y-%m-%d_%H:%M:%S')
mv ~/.vic ~/.vim.bak-$datetime
mv ~/.vimrc ~/.vimrc.bak-$datetime
mv ~/.zshrc ~/.zshrc.bak-$datetime
mv ~/.p10k.zsh ~/.p10k.zsh.bak-$datetime
mv ~/.config ~/.config.bak-$datetime
mv ~/.zsh ~/.zsh.bak-$datetime
mv ~/.xprofile ~/.xprofile.bak-$datetime
mv ~/.zprofile ~/.zprofile.bak-$datetime
mv ~/.plugin ~/.zplugin.bak-$datetime
mv ~/.vim_runtime ~/.vim_runtime.bak-$datetime
mv ~/.tmux ~/.tmux.bak-$datetime
mv ~/.tmux.conf ~/.tmux.conf.bak-$datetime
mv ~/.wezterm.lua ~/.wezterm.lua.bak-$datetime
mv ~/.gitconfig ~/.gitconfig.bak-$datetime
mv ~/.gitignore ~/.gitignore.bak-$datetime
mv ~/kakaotalk-downloads ~/kakaotalk-downloads.bak-$datetime
ln -s $DIR/vim ~/.vim
ln -s $DIR/vimrc ~/.vimrc
ln -s $DIR/zshrc ~/.zshrc
ln -s $DIR/vim_runtime ~/.vim_runtime
ln -s $DIR/config ~/.config
ln -s $DIR/zsh ~/.zsh
ln -s $DIR/xprofile ~/.xprofile
ln -s $DIR/zprofile ~/.zprofile
ln -s $DIR/zplugin ~/.zplugin
ln -s $DIR/zshenv ~/.zshenv
ln -s $DIR/p10k.zsh ~/.p10k.zsh
ln -s $DIR/tmux ~/.tmux
ln -s $DIR/tmux.conf ~/.tmux.conf
ln -s $DIR/wezterm.lua ~/.wezterm.lua
ln -s $DIR/gitconfig ~/.gitconfig
ln -s $DIR/gitignore ~/.gitignore
ln -s "~/.wine/drive_c/users/dps0340/Documents/KakaoTalk Downloads" ~/kakaotalk-downloads
brew install --cask orbstack macfuse onedrive
brew tap homebrew/cask-fonts
brew install font-jetbrains-mono-nerd-font
brew install coreutils zplug zinit pyenv neovim eza ctags thefuck
$DIR/install-packages.sh
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
curl -s "https://get.sdkman.io" | bash
export SDKMAN_DIR="$HOME/.sdkman"
[[ -s "$HOME/.sdkman/bin/sdkman-init.sh" ]] && source "$HOME/.sdkman/bin/sdkman-init.sh"
sdk install java 17.0.5-amzn
sdk install gradle 7.6
pyenv install 3.10.9
pyenv global 3.10.9
sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
command -v zsh | sudo tee -a /etc/shells
zsh