-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·82 lines (68 loc) · 2.05 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
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
77
78
79
80
81
82
PWD=$(pwd)
git submodule init
git submodule update
touch secrets
#bash
#rm -f ~/.bashrc
#ln -s $PWD/bash/bashrc ~/.bashrc
#zsh
rm -f ~/.zshrc
ln -s $PWD/zsh/zshrc ~/.zshrc
ln -s $PWD/zsh/oh-my-zsh ~/.oh-my-zsh
ln -s $PWD/zsh/p10k.zsh ~/.p10k.zsh
# Add OhMyZsh plugins
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
#git
rm -f ~/.gitconfig
ln -s $PWD/git/gitconfig ~/.gitconfig
#npm
rm -f ~/.npmrc
ln -s $PWD/npmrc ~/.npmrc
#debian
#rm -f ~/.quiltrc-dpkg
#ln -s $PWD/debian/quiltrc-dpkg ~/.quiltrc-dpkg
#vim
rm -f ~/.vimrc
rm -rf ~/.vim
ln -s $PWD/vim/vimrc ~/.vimrc
ln -s $PWD/vim ~/.vim
vim +'PlugInstall --sync' +qa
#mpd & ncmpcpp
#mkdir -p ~/.mpd ~/.ncmpcpp
#rm -f ~/.mpd/mpd.conf
#ln -s $PWD/mpd/mpd.conf ~/.mpd/mpd.conf
#rm -f ~/.ncmpcpp/config
#ln -s $PWD/mpd/ncmpcpp.config ~/.ncmpcpp/config
#awesome & xinit
#rm -f ~/.zlogin
#ln -s $PWD/zsh/zlogin ~/.zlogin
#mkdir -p ~/.config
#rm -rf ~/.xinitrc
#rm -rf ~/.Xresources
#rm -rf ~/.config/awesome
#ln -s $PWD/xinitrc ~/.xinitrc
#ln -s $PWD/Xresources ~/.Xresources
#ln -s $PWD/awesome ~/.config/awesome
#tmux
rm -rf ~/.tmux.conf
ln -s $PWD/tmux.conf ~/.tmux.conf
ln -s $PWD/tmux ~/.tmux
#dircolors
rm -rf ~/.dircolors
ln -s $PWD/dircolors/dircolors.ansi-dark ~/.dircolors
# Arch Packages
#sudo pacman -S ttf-meslo-nerd-font-powerlevel10k nodejs tmux
# MacOS
if [[ "$OSTYPE" == "darwin"* ]]; then
# Disabled 'last login' greeter
touch ~/.hushlogin
# Packages
brew install --cask iterm2 numi keyman dozer rectangle libreoffice gimp inkscape
brew install tmux wget htop tree fnm basictex
brew install --cask homebrew/cask-fonts/font-inconsolata-for-powerline
brew tap mongodb/brew && brew update
brew install [email protected]
brew services start [email protected]
fi