Skip to content

Commit 94f97c6

Browse files
author
Kuba Pospieszny
committed
Fix ShellCheck warnings and disable zsh autocorrection
1 parent d62f373 commit 94f97c6

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

dotfiles/.zshrc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ ZSH_THEME="powerlevel10k/powerlevel10k"
88

99
zstyle ':omz:update' mode auto
1010

11-
ENABLE_CORRECTION="true"
1211
COMPLETION_WAITING_DOTS="true"
1312
DISABLE_UNTRACKED_FILES_DIRTY="true"
1413
HIST_STAMPS="yyyy-mm-dd"
@@ -91,4 +90,7 @@ alias gpl='git pull'
9190
alias gps='git push'
9291
alias glog='git log --oneline --graph --decorate'
9392

93+
unsetopt correct_all
94+
unsetopt correct
95+
9496
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh

scripts/oh-my-zsh.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,21 @@ fi
1313

1414
if [ ! -d "${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k" ]; then
1515
echo "INFO ==>: Installing Powerlevel10k..."
16-
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
16+
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git "${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k"
1717
else
1818
echo "INFO ==>: ✓ Powerlevel10k already installed"
1919
fi
2020

2121
if [ ! -d "${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions" ]; then
2222
echo "INFO ==>: Installing zsh-autosuggestions..."
23-
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
23+
git clone https://github.com/zsh-users/zsh-autosuggestions "${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions"
2424
else
2525
echo "INFO ==>: ✓ zsh-autosuggestions already installed"
2626
fi
2727

2828
if [ ! -d "${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting" ]; then
2929
echo "INFO ==>: Installing zsh-syntax-highlighting..."
30-
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
30+
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git "${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting"
3131
else
3232
echo "INFO ==>: ✓ zsh-syntax-highlighting already installed"
3333
fi

0 commit comments

Comments
 (0)