From 7198c0d3c2d20c2cba53fa15cc95c8a2ee7a3da2 Mon Sep 17 00:00:00 2001 From: ivaquero Date: Sun, 17 Dec 2023 01:17:38 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E2=9E=96=20remove=20default=20config?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- defaults.ps1 | 22 ---------------------- defaults.sh | 27 --------------------------- oxidizer.ps1 | 28 ---------------------------- oxidizer.sh | 37 ------------------------------------- 4 files changed, 114 deletions(-) diff --git a/defaults.ps1 b/defaults.ps1 index 87d8d128..fbd1d62c 100755 --- a/defaults.ps1 +++ b/defaults.ps1 @@ -46,10 +46,6 @@ $Global:OX_PLUGINS = @( # select initial and backup configurations ########################################################## -# options: scoop, conda, vscode, julia, texlive, node -$Global:OX_UPDATE_PROG = @('scoop') -$Global:OX_BACKUP_PROG = @('scoop') - # backup file path $env:OX_BACKUP = "$HOME\Documents\backup" @@ -77,24 +73,6 @@ $Global:OX_PROXY = @{ 'v' = '1080' } -########################################################## -# select oxidize and reduce configurations -########################################################## - -# files to be exported to backup folder -# ox: custom.sh of Oxidizer -# rs: cargo's env -# pu: pueue's config.yml -# pua: pueue's aliases.yml -# jl: julia's startup.jl -# vs: vscode's settings.json -# vsk: vscode's keybindings.json -# vss_: vscode's snippets folder -$Global:OX_OXIDIZE_FILE = @('ox') - -# files to be import from backup folder -$Global:OX_REDUCE_FILE = @("ox") - ########################################################## # pueue settings ########################################################## diff --git a/defaults.sh b/defaults.sh index b70e85f6..56a811f7 100644 --- a/defaults.sh +++ b/defaults.sh @@ -47,13 +47,6 @@ OX_PLUGINS=( # select software configuration objects ########################################################## -# options: brew, conda, vscode, julia, texlive, node -declare -a OX_UPDATE_PROG -export OX_UPDATE_PROG=(brew) - -declare -a OX_BACKUP_PROG -export OX_BACKUP_PROG=(brew) - # backup file path export OX_BACKUP=${HOME}/Documents/backup @@ -80,26 +73,6 @@ declare -A OX_PROXY=( [v]=1080 ) -########################################################## -# select oxidize and reduce settings -########################################################## - -# files to be exported to backup folder -# ox: custom.sh of Oxidizer -# rs: cargo's env -# pu: pueue's config.yml -# pua: pueue's aliases.yml -# jl: julia's startup.jl -# vs: vscode's settings.json -# vsk: vscode's keybindings.json -# vss_: vscode's snippets folder -declare -a OX_OXIDIZE_FILE -export OX_OXIDIZE_FILE=(ox) - -# files to be import from backup folder -declare -a OX_REDUCE_FILE -export OX_REDUCE_FILE=(ox) - ########################################################## # brew settings ########################################################## diff --git a/oxidizer.ps1 b/oxidizer.ps1 index 7cd2920b..67c95b1a 100755 --- a/oxidizer.ps1 +++ b/oxidizer.ps1 @@ -83,34 +83,6 @@ $Global:OX_OXIDE.bkps = "$env:OX_BACKUP\shell\Profile.ps1" # Oxidizer Management ########################################################## -# update packages -function up_all { - ForEach ($obj in $Global:OX_UPDATE_PROG) { - Invoke-Expression up_$obj - } -} - -# backup packages lists -function back_all { - ForEach ($obj in $Global:OX_BACKUP_PROG) { - Invoke-Expression back_$obj - } -} - -# export configurations -function oxall { - ForEach ($obj in $Global:OX_OXIDIZE_FILE) { - oxf $obj - } -} - -# export configurations -function rdall { - ForEach ($obj in $Global:OX_REDUCE_FILE) { - rdf $obj - } -} - # initialize Oxidizer function iiox { echo "Installing Required packages...`n" diff --git a/oxidizer.sh b/oxidizer.sh index 8b6521d5..6392c67a 100644 --- a/oxidizer.sh +++ b/oxidizer.sh @@ -107,43 +107,6 @@ OX_OXIDE[bkvi]=${OX_BACKUP}/shell/.vimrc # Oxidizer Management ########################################################## -# update all packages -up_all() { - for obj in "${OX_UPDATE_PROG[@]}"; do - eval "up_$obj" - done -} - -# backup package lists -back_all() { - for obj in "${OX_BACKUP_PROG[@]}"; do - eval "back_$obj" - done -} - -# oxidize configurations -oxall() { - for obj in "${OX_OXIDIZE_FILE[@]}"; do - oxf "$obj" - done -} - -# reduce configurations -rdall() { - for obj in "${OX_REDUCE_FILE[@]}"; do - rdf "$obj" - done -} - -iiox() { - printf "📦 Installing Required packages...\n" - cat "${OXIDIZER}"/defaults/Brewfile.txt | while read -r pkg; do - if test ! "$(command -v "$pkg")"; then - brew install "$pkg" - fi - done -} - # update Oxidizer upox() { cd "${OXIDIZER}" || exit