cleanup zshrc

This commit is contained in:
2026-08-10 19:36:49 -07:00
parent b1c54ef973
commit 57ff1ad019
+15 -12
View File
@@ -10,13 +10,13 @@ CASE_SENSITIVE="true"
zstyle ':omz:update' mode auto # update automatically without asking zstyle ':omz:update' mode auto # update automatically without asking
zstyle ':omz:update' frequency 7 zstyle ':omz:update' frequency 7
plugins=(zsh-autosuggestions sudo web-search copypath gitignore) plugins=(zsh-autosuggestions sudo web-search copypath gitignore zoxide)
source $ZSH/oh-my-zsh.sh source $ZSH/oh-my-zsh.sh
alias vim='nvim' alias vim='nvim'
alias vi='nvim'
alias ws='web_search' alias ws='web_search'
alias ncspot='~/.config/ncspot/playerctl_notifier.sh & ncspot'
zstyle ':completion:*' completer _complete _approximate zstyle ':completion:*' completer _complete _approximate
zstyle ':completion:*' group-name '' zstyle ':completion:*' group-name ''
@@ -35,22 +35,25 @@ SAVEHIST=1000
bindkey -v # bind keys to vim mode bindkey -v # bind keys to vim mode
eval "$(zoxide init zsh)" eval "$(zoxide init zsh)"
# set up ruby if installed
if (($+commands[ruby] )); then
export GEM_HOME="$(ruby -e 'puts Gem.user_dir')" export GEM_HOME="$(ruby -e 'puts Gem.user_dir')"
path+=("$GEM_HOME/bin") path+=("$GEM_HOME/bin")
fi
# Restart your shell for the changes to take effect. # set up pyenv if installed
export PYENV_ROOT="$HOME/.pyenv" export PYENV_ROOT="$HOME/.pyenv"
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH" if (($+commands[pyenv] )); then
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)" eval "$(pyenv init -)"
fi
path+=("$HOME/.local/bin/")
export PATH export PATH
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh [[ ! -f "$HOME/.p10k.zsh" ]] || source "$HOME/.p10k.zsh"
# put your paths and aliases here to avoid merge conflicts # put your paths and aliases here to avoid merge conflicts
[[ ! -f ~/.myzsh ]] || source ~/.myzsh [[ ! -f "$HOME/.myzsh" ]] || source "$HOME/.myzsh"
[[ -f ~/.profile ]] && . ~/.profile [[ -f "$HOME/.profile" ]] && . "$HOME/.profile"
## [Completion]
## Completion scripts setup. Remove the following line to uninstall
[[ -f /home/frosty/.dart-cli-completion/zsh-config.zsh ]] && . /home/frosty/.dart-cli-completion/zsh-config.zsh || true
## [/Completion]