From 81021d8b3e82ccf0c4caebac9b7e2ba5f55ad0a4 Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Sun, 1 Jan 2023 20:04:13 +0800 Subject: Update bootstrap script --- scripts/bootstrap.sh | 28 ++-------------------------- 1 file changed, 2 insertions(+), 26 deletions(-) diff --git a/scripts/bootstrap.sh b/scripts/bootstrap.sh index b17bba6..f37b378 100755 --- a/scripts/bootstrap.sh +++ b/scripts/bootstrap.sh @@ -2,6 +2,8 @@ dotfiles_dir=$(cd -- "$(dirname ${BASH_SOURCE})/.." > /dev/null 2>&1; pwd -P) +mkdir -p "$HOME/.config" + remove_and_link () { for var in $@ do @@ -31,33 +33,7 @@ main () { 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 "$@" -- cgit v1.2.3