Skip to content

Commit dd32b7d

Browse files
committed
fix: zsh-autosuggestions and zsh-syntax-highlighting cloning repo at the current location
- Fix one shellcheck warning
1 parent 1c9c323 commit dd32b7d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib/base-script.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ SCRIPT_FOLDER = $SCRIPT_FOLDER
4040
EOF
4141

4242
echo && echo "- Preparing the files location"
43-
mkdir --parents ~/$CONFIG_FOLDER
43+
mkdir --parents ~/"$CONFIG_FOLDER"
4444
}
4545

4646
function fix_time_zone() {
@@ -170,8 +170,8 @@ function install_oh_my_zsh() {
170170
git -C "${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}"/themes/powerlevel10k pull
171171

172172
echo_caption "Install plugins on oh-my-zsh custom plugins folder: $ZSH_PLUGINS"
173-
git clone https://github.com/zsh-users/zsh-autosuggestions.git "${ZSH_CUSTOM:-~/.oh-my-zsh/custom}"/plugins/zsh-autosuggestions
174-
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git "${ZSH_CUSTOM:-~/.oh-my-zsh/custom}"/plugins/zsh-syntax-highlighting
173+
git clone https://github.com/zsh-users/zsh-autosuggestions.git "${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}"/plugins/zsh-autosuggestions
174+
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git "${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}"/plugins/zsh-syntax-highlighting
175175

176176
echo_caption "Adding plugins to ~/.zshrc file..."
177177
sudo sed -i "s/^plugins=.*/plugins=$ZSH_PLUGINS/" ~/.zshrc

0 commit comments

Comments
 (0)