Skip to content

Commit

Permalink
update installers
Browse files Browse the repository at this point in the history
  • Loading branch information
ivaquero committed Jan 6, 2024
1 parent 45dbc69 commit 6ffc1cc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 4 additions & 1 deletion install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,10 @@ else {
}

Write-Output "Adding Custom settings..."
Copy-Item -R -v "$env:OXIDIZER\defaults.sh" "$env:OXIDIZER\custom.sh"

if (!(Test-Path -Path "$env:OXIDIZER\custom.sh")) {
Copy-Item -R -v "$env:OXIDIZER\defaults.sh" "$env:OXIDIZER\custom.sh"
}

# load zoxide
sed -i.bak "s|.* OX_STARTUP = .*|$Global:OX_STARTUP=1|" "$env:OXIDIZER\custom.ps1"
Expand Down
4 changes: 3 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,9 @@ fi
echo "${append_str}" >>"${OX_SHELL}"

printf "⚙️ Adding Custom settings..."
cp "${OXIDIZER}"/defaults.sh "${OXIDIZER}/"custom.sh
if [[ ! -f "${OXIDIZER}/"custom.sh ]]; then
cp "${OXIDIZER}"/defaults.sh "${OXIDIZER}/"custom.sh
fi

# load zoxide
sed -i.bak "s|.* OX_STARTUP=.*|export OX_STARTUP=1|" "${OXIDIZER}"/custom.sh
Expand Down

0 comments on commit 6ffc1cc

Please sign in to comment.