From 8f5630325febedcbeb41200f0f2f7397d462a5b1 Mon Sep 17 00:00:00 2001 From: Reinaldy Rafli Date: Wed, 29 Sep 2021 22:00:30 +0700 Subject: [PATCH] gonna see the light of day --- README.md | 3 ++- setup_arch.sh | 41 ++++++++++++++++++++++++++++++++++++++++ setup.sh => setup_deb.sh | 2 ++ vscode/settings.json | 1 + 4 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 setup_arch.sh rename setup.sh => setup_deb.sh (97%) create mode 120000 vscode/settings.json diff --git a/README.md b/README.md index e94c44a..263fb3a 100644 --- a/README.md +++ b/README.md @@ -24,5 +24,6 @@ Debian (I used to use Ubuntu) │ ├── me.jpg - My Github profile picture ├── README.md - You are here -└── setup.sh - Entrypoint if I'm doing a fresh install +├── setup_arch.sh - Entrypoint if I'm doing a fresh install for arch +└── setup_deb.sh - Entrypoint if I'm doing a fresh install for debian ``` \ No newline at end of file diff --git a/setup_arch.sh b/setup_arch.sh new file mode 100644 index 0000000..a3b1bdc --- /dev/null +++ b/setup_arch.sh @@ -0,0 +1,41 @@ +#!/usr/bin/env bash + +ME="/home/$(whoami)" +CFG="${ME}/.config" +DOTFILES="${ME}/dotfiles" +BINDIR="${ME}/dotfiles/bin" + +sudo -v + +echo "I'm assuming you're doing a fresh install. Send a SIGTERM anytime you like." + +# Set dotfiles path +DOTFILES_PATH=$(pwd) + +function set_symlink () { + sudo rm $HOME/.bashrc + sudo ln -s ${DOTFILES_PATH}/bash/.bashrc $HOME/.bashrc + echo "export DOTFILES_PATH=$(pwd)" >> $HOME/.bashrc + sudo rm $HOME/.bash_logout + sudo ln -s ${DOTFILES_PATH}/bash/.bash_logout $HOME/.bash_logout + sudo rm $HOME/.profile + sudo ln -s ${DOTFILES_PATH}/bash/.profile $HOME/.profile + sudo rm $HOME/.gitconfig + sudo ln -s ${DOTFILES_PATH}/git/.gitconfig $HOME/.gitconfig + sudo rm $HOME/.czcrc + sudo ln -s ${DOTFILES_PATH}/git/.czrc $HOME/.czrc +} + +sudo chmod -R 755 ./scripts +sudo chmod -R 755 ./bin +sudo mkdir /opt/bin + +yes | sudo pacman -Syu +yes | sudo pacman -S gtk3 jdk gnupg gcc glibc boost rlwrap cmake icu unzip python2 python ca-certificates php protobuf rust rustup go julia-bin lua +yes | sudo pacman -S fd bat ripgrep fzf neofetch curlie duf exa +yes | sudo pacman -S visual-studio-code-bin mongodb-compass 7-zip brave-bin spotify protonvpn-gui authy cloudflare-warp-bin telegram-desktop-bin + +set_symlink + +./scripts/node.sh install +./scripts/micro.sh install \ No newline at end of file diff --git a/setup.sh b/setup_deb.sh similarity index 97% rename from setup.sh rename to setup_deb.sh index ca3cc53..44f30cd 100755 --- a/setup.sh +++ b/setup_deb.sh @@ -63,3 +63,5 @@ fi ./scripts/micro.sh install ./scripts/utils.sh install + +C:\Users\Asus ROG\AppData\Roaming\Code\User \ No newline at end of file diff --git a/vscode/settings.json b/vscode/settings.json new file mode 120000 index 0000000..91ede90 --- /dev/null +++ b/vscode/settings.json @@ -0,0 +1 @@ +/mnt/c/users/asus rog/appdata/roaming/code/user/settings.json \ No newline at end of file