-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSTART.sh
96 lines (73 loc) · 2.4 KB
/
START.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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
#!/usr/bin/env bash
mkdir ~/repos
sudo pacman -S - <pkglist.txt
pip install --user -r pippkg.txt
pushd ~/repos
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si
popd
#prevent dropbox automatic updates
install -dm0 ~/.dropbox-dist
#prevent keyserver import failure when using yay to get dropbox:
#https://bbs.archlinux.org/viewtopic.php?pid=1917184#p1917184
cp /etc/pacman.d/gnupg/gpg.conf ~/.gnupg/gpg.conf
echo "keyserver pool.sks-keyservers.net" >>~/.gnupg/gpg.conf
pushd ~/.home/
while read p; do
yay -S "$p"
done <AUR.txt
yay polybar
yay dropbox
yay bear
yay franz
echo "********************************************************************************"
echo "*****************************start dropbox please*******************************"
echo "********************************************************************************"
read -p "Press Enter to continue"
sudo systemctl edit dropbox@{USER}
sudo systemctl enable dropbox@{USER}
cd ~/.home
rm -rf ~/.bash* ~/.git ~/.tmux* ~/.vim
stow bash doom git tmux vim config
cd ~/repos
git clone [email protected]:rupa/z.git
git clone [email protected]:emacs-mirror/emacs.git
cd emacs
git checkout -t origin/emacs-27
./autogen.sh
CFLAGS="-O2 -march=native" ./configure --with-modules --with-cairo --with-imagemagick --quiet
NUMCORES="$(grep -c ^processor /proc/cpuinfo)"
NUMCORES=$(($NUMCORES * 2))
make -j${NUMCORES}
sudo make install
cd
git clone https://github.com/hlissner/doom-emacs ~/.emacs.d
yes | ~/.emacs.d/bin/doom install
~/.emacs.d/bin/doom compile
#rbenv install
cd
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
${HOME}/.rbenv/bin/rbenv install 2.7.1
${HOME}/.rbenv/bin/rbenvv global 2.7.1
ruby -v
gem install bundler
rbenv rehash
pip install black pyflakes isort pipenv nose pytest
#install rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
rustup component add rls
#firefox customization
pushd ~/.mozilla/firefox/*default-release
mkdir chrome
cp ~/.home/.userChrome.css userChrome.css
popd
pushd ~/Dropbox/stow
rm ~/.bash_history && stow --target=${HOME} bash
popd
echo "************************************************************************"
echo "*****************************restarting now*****************************"
echo "************************************************************************"
read -p "Press Enter to continue"
sudo shutdown -r now