aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2021-10-21 23:42:05 +0800
committerGuangxiong Lin <[email protected]>2021-10-21 23:42:05 +0800
commite088f86f3ca6bcaae3d1190e19f09d4408e99bfc (patch)
tree0b938b1ec6aac5af5f3dda478dc8f4f8e347416a
parent046aea1b0293b64c3f4ae4ff55639a51aa73b1d1 (diff)
downloaddotfiles-e088f86f3ca6bcaae3d1190e19f09d4408e99bfc.tar.gz
dotfiles-e088f86f3ca6bcaae3d1190e19f09d4408e99bfc.tar.bz2
dotfiles-e088f86f3ca6bcaae3d1190e19f09d4408e99bfc.zip
Add install script in bootstrap
-rwxr-xr-xbootstrap.sh32
1 files changed, 30 insertions, 2 deletions
diff --git a/bootstrap.sh b/bootstrap.sh
index 8248252..9976a98 100755
--- a/bootstrap.sh
+++ b/bootstrap.sh
@@ -19,17 +19,45 @@ remove_and_link () {
link_all () {
remove_and_link .ctags.d .mutt bin .aliases .macos \
.mbsyncrc .msmtprc .tmux.conf .urlview .zshrc \
- .vimrc .vim .path .functions .emacs.d .gitignore
+ .vimrc .vim .path .functions .emacs.d .gitconfig \
+ .config/i3 .config/polybar .xinitrc .pam_environment \
+ .zprofile
}
main () {
- if [ $# -eq 0 ] || [ $1 -eq 'all' ]; then
+ if [ $# -eq 0 ] || [ $1 = 'all' ]; then
link_all
return
fi
+ if [ $1 = 'install' ]; then
+ install
+ return
+ fi
+
remove_and_link $@
}
+install () {
+ if [ -f '/etc/arch-release' ]; then
+ arch_install
+ else
+ echo "No script for this OS"
+ fi
+}
+
+arch_install () {
+ sudo pacman -Syu git xorg-server xorg-xinit networkmanager alsa-utils \
+ openssh keepassxc bluez bluez-utils \
+ adobe-source-han-serif-cn-fonts adobe-source-han-sans-cn-fonts \
+ wqy-zenhei wqy-microhei wqy-microhei-lite wqy-bitmapfont \
+ noto-fonts-cjk noto-fonts-emoji noto-fonts-extra \
+ firefox steam \
+ fcitx5-im fcitx5-chinese-addons fcitx5-anthy fcitx5-pinyin-zhwiki \
+ i3-wm
+
+ echo 'Please remember to install GPU driver'
+}
+
main $@