aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2023-01-01 20:04:13 +0800
committerGuangxiong Lin <[email protected]>2023-01-01 20:04:13 +0800
commit81021d8b3e82ccf0c4caebac9b7e2ba5f55ad0a4 (patch)
tree6041d6aeb6d0c7576909a6463af4a7e494a7ade9
parentb93419000a8c446bad6ba48126f36531f0a7f9d2 (diff)
downloaddotfiles-81021d8b3e82ccf0c4caebac9b7e2ba5f55ad0a4.tar.gz
dotfiles-81021d8b3e82ccf0c4caebac9b7e2ba5f55ad0a4.tar.bz2
dotfiles-81021d8b3e82ccf0c4caebac9b7e2ba5f55ad0a4.zip
Update bootstrap script
-rwxr-xr-xscripts/bootstrap.sh28
1 files 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 "$@"