Skip to content

Commit

Permalink
chore: ➖ remove default config
Browse files Browse the repository at this point in the history
  • Loading branch information
ivaquero committed Dec 16, 2023
1 parent 51fec37 commit 7198c0d
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 114 deletions.
22 changes: 0 additions & 22 deletions defaults.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -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
##########################################################
Expand Down
27 changes: 0 additions & 27 deletions defaults.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
##########################################################
Expand Down
28 changes: 0 additions & 28 deletions oxidizer.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
37 changes: 0 additions & 37 deletions oxidizer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7198c0d

Please sign in to comment.