Altering the zshrc file to remove correctall because it's incredibly

annoying and adding in NVM loading (will need testing on systems that don't
have it installed).
This commit is contained in:
Finch 2025-02-11 07:54:51 -06:00
parent 0385a8bd20
commit 9a0c153797

9
zshrc
View File

@ -20,7 +20,7 @@ HYPHEN_INSENSITIVE="true"
# Uncomment one of the following lines to change the auto-update behavior # Uncomment one of the following lines to change the auto-update behavior
zstyle ':omz:update' mode reminder frequency 14 zstyle ':omz:update' mode reminder frequency 14
# Plugins ### Plugins
# Install the zsh-autosuggestions plugin if it doesn't exist # Install the zsh-autosuggestions plugin if it doesn't exist
if [ ! -d ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions ] if [ ! -d ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions ]
then then
@ -45,7 +45,7 @@ source $ZSH/oh-my-zsh.sh
setopt NO_clobber # Do not clobber files by default setopt NO_clobber # Do not clobber files by default
setopt hist_ignore_all_dups # Replace old history with the newest call to an identical call setopt hist_ignore_all_dups # Replace old history with the newest call to an identical call
setopt hist_ignore_space # Remove history lines that start with spaces setopt hist_ignore_space # Remove history lines that start with spaces
setopt correctall # Correct commands # setopt correctall # Correct commands
# Enable compinit advanced completion # Enable compinit advanced completion
autoload -Uz compinit autoload -Uz compinit
@ -101,3 +101,8 @@ for file in $include_files; do
source $file source $file
done done
# NVM required config
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion