Chunk & Split zshrc into smaller files

This commit is contained in:
pfych 2025-02-19 13:47:48 +11:00
parent 1314b22f27
commit 7fd48fb729
5 changed files with 57 additions and 51 deletions

21
.config/zsh/shared.sh Normal file
View file

@ -0,0 +1,21 @@
# Use NVIM
alias vim=nvim
# NVM
export NVM_DIR="$CONFIGDIR/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
# Nodejs
export SKIP_PREFLIGHT_CHECK=true
# FZF
export FZF_DEFAULT_COMMAND='find . -type d \( -name Pods -o -name .yarn -o -name node_modules -o -name .git -o -path name \) -prune -false -o -name "*"'
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
# thefuck
eval $(thefuck --alias)
alias a=fuck
# Load extra functions
source "$CONFIGDIR/scripts/scripts.sh"