dotfiles/dot_config/zsh/zshrc
2024-09-26 16:35:01 -05:00

54 lines
1.3 KiB
Bash

# load custom executable functions
for function in $HOME/.config/zsh/functions/*; do
source $function
done
# extra files in ~/.zsh/configs/pre , ~/.zsh/configs , and ~/.zsh/configs/post
# these are loaded first, second, and third, respectively.
source $HOME/.config/zsh/functions/_load_settings
_load_settings "$HOME/.config/zsh/configs"
# aliases
[[ -f $HOME/.aliases ]] && source $HOME/.aliases
# set open file limit
ulimit -n 1024
# ignore duplicate history entries
setopt histignoredups
# keep TONS of history
export HISTFILE=$HOME/.config/zsh/.zsh_history
export HISTSIZE=4096
export SAVEHIST=4096
# shared history
setopt append_history
setopt inc_append_history
setopt share_history
# automatically pushd
setopt auto_pushd
export dirstacksize=5
# Case insensitive completion
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*'
# Enable completion menu
zstyle ':completion:*' menu select=1 _complete _ignored _approximate
# Node stuff
export PATH=/usr/local/share/npm/bin:$PATH
export NODE_PATH=/usr/local/lib/node_modules
# Environment config
[[ -f $HOME/.config/zsh/.zshrc.env ]] && source $HOME/.config/zsh/.zshrc.env
if (( $+commands[thefuck] )); then
eval "$(thefuck --alias)"
fi
export PATH="$HOME/.bin:$PATH"
eval "$(starship init zsh)"