-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmanjaro.sh
executable file
·116 lines (89 loc) · 2.75 KB
/
manjaro.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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
#!/bin/bash
init() {
sudo pacman-mirrors -i -c China -m rank
sudo echo "
[archlinuxcn]
SigLevel = Optional TrustedOnly
Server = https://mirrors.tuna.tsinghua.edu.cn/archlinuxcn/$arch
" >> /etc/pacman.conf
sudo pacman -S archlinux-keyring
sudo pacman -Syyu
# aur
sudo pacman -S yaourt-gui-manjaro aurvote aurman pacui
}
# install default software
default_app() {
# some useful app
sudo pacman -S axel htop tree speedtest-cli
# powerline
# sudo pacman -S powerline powerline-fonts
git clone https://github.com/powerline/fonts.git --depth=1 && cd fonts && ./install.sh && cd .. && rm -rf fonts
# oh-my-zsh
sudo pacman -S oh-my-zsh-git && \
cp /usr/share/oh-my-zsh/zshrc ~/.zshrc && chsh -s `which zsh` && \
curl -s https://raw.githubusercontent.com/zakaziko99/agnosterzak-ohmyzsh-theme/master/agnosterzak.zsh-theme -o agnosterzak.zsh-theme && \
mv agnosterzak.zsh-theme $ZSH_CUSTOM/themes/
# tmux
sudo pacman -S tmux && \
cd ~ && git clone https://github.com/gpakosz/.tmux.git && \
cd .tmux && cp .tmux.conf ${HOME}/ && cd -
# vim
sudo pacman -S vim && curl -sLf https://spacevim.org/install.sh | bash
# docker
sudo pacman -S docker docker-compose && \
sudo gpasswd -a $USER docker
}
# configure development environment
dev_config() {
# sdkman
sudo pacman -S zip unzip && \
curl -s https://get.sdkman.io | bash && \
source ${HOME}/.sdkman/bin/sdkman-init.sh
java_version="8.0.181-oracle"
scala_version="2.11.12"
maven_version="3.5.4"
sbt_version="1.2.1"
sdk install java $java_version
sdk install scala $scala_version
sdk install maven $maven_version
sdk install sbt $sbt_version
# pipenv
sudo pacman -S python-pipenv
# golang && dep
sudo pacman -S golang dep
}
# install development software
jetbrains() {
GOLAND="goland"
IDEA=("intellij-idea-community-edition" "intellij-idea-ultimate-edition")
PYCHARM=("pycharm-community-edition" "pycharm-professional")
JETBRAINS=($GOLAND $IDEA[2] $PYCHARM[2])
sudo pacman -S $JETBRAINS
}
dev_app() {
jetbrains
sudo pacman -S visual-studio-code-bin
sudo pacman -S zeal muparser albert
aurman -S httpie mycli pgcli
}
# install multimedia & office software
media_office_app() {
# theme
sudo pacman -S arc-kde capitaine-cursors numix-circle-icon-theme-git
# aurman -S sddm-theme-kde-plasma-chili
# sogoupinyin
sudo pacman -S fcitx fcitx-configtool fcitx-sogoupinyin
# media
sudo pacman -S docky google-chrome netease-cloud-music
# office
sudo pacman -S remarkable typora wps-office
}
# install flow
flow() {
init
default_app
dev_config
dev_app
media_office_app
}
flow