Skip to content

Commit

Permalink
build: ➖ remove sd from mac and linux
Browse files Browse the repository at this point in the history
  • Loading branch information
ivaquero committed Aug 2, 2023
1 parent bf346d9 commit cd375b6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion defaults.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# basic settings
##########################################################

# default editor, can be changed by function `che()`
# default editor, can be changed by function `ched()`
export EDITOR='code'
# terminal editor
export EDITOR_T='vi'
Expand Down
16 changes: 11 additions & 5 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,17 @@ echo "${append_str}" >>"${OX_SHELL}"
printf "⚙️ Adding Custom settings..."
cp ${OXIDIZER}/defaults.sh ${OXIDIZER}/custom.sh

# load zoxide
sd ".* OX_STARTUP=.*" "export OX_STARTUP=1" ${OXIDIZER}/custom.sh

# set path of oxidizer
sd "source OXIDIZER=.*" "source OXIDIZER=${OXIDIZER}/oxidizer.sh" ${OX_SHELL}
if [[ $(uname) = "Darwin" ]]; then
# load zoxide
sed -i.bak "s/.* OX_STARTUP=.*/export OX_STARTUP=1/g" ${OXIDIZER}/custom.sh
# set path of oxidizer
sed -i.bak "source OXIDIZER=.*" "source OXIDIZER=${OXIDIZER}/oxidizer.sh" ${OX_SHELL}
else
# load zoxide
sed -i "s/.* OX_STARTUP=.*/export OX_STARTUP=1/g" ${OXIDIZER}/custom.sh
# set path of oxidizer
sed -i "source OXIDIZER=.*" "source OXIDIZER=${OXIDIZER}/oxidizer.sh" ${OX_SHELL}
fi

###################################################
# Load Plugins
Expand Down

0 comments on commit cd375b6

Please sign in to comment.