dotfiles/zsh/.zshrc

52 lines
1.2 KiB
Bash
Raw Normal View History

2024-04-26 17:41:20 +00:00
2024-10-13 14:53:12 +00:00
#plugins
source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
source ~/.zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
2024-10-17 14:03:03 +00:00
source ~/.zsh/zsh-history-substring-search/zsh-history-substring-search.zsh
bindkey '^[OA' history-substring-search-up
bindkey '^[OB' history-substring-search-down
2024-10-13 14:53:12 +00:00
setopt autocd
2024-04-26 17:41:20 +00:00
#load bash aliases
if [ -f ~/.zsh_aliases ]; then
. ~/.zsh_aliases
fi
#node wasn't working
export NVM_DIR=~/.nvm
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
#diff-so-fancy
path+=( "$HOME/scripts/bin" )
#ZOXIDE
if (( $+commands[zoxide] )); then
eval "$(zoxide init --cmd ${ZOXIDE_CMD_OVERRIDE:-z} zsh)"
else
echo '[oh-my-zsh] zoxide not found, please install it from https://github.com/ajeetdsouza/zoxide'
fi
2024-05-21 21:26:10 +00:00
#LUAROCKS
eval "$(luarocks path --bin)"
2024-09-12 18:24:34 +00:00
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
2024-10-13 12:45:15 +00:00
2024-10-13 14:53:12 +00:00
#fzf
2024-11-07 23:15:06 +00:00
source <(fzf --zsh)
2024-10-13 12:45:15 +00:00
2024-10-13 14:53:12 +00:00
#starship
eval "$(starship init zsh)"
2024-10-13 12:45:15 +00:00
2024-10-13 14:53:12 +00:00
#history file
HISTFILE=~/.zsh_history
# How many commands to store in history
HISTSIZE=10000
SAVEHIST=10000
# Share history in every terminal session
setopt SHARE_HISTORY
2024-10-14 19:40:33 +00:00
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
2024-11-07 23:15:06 +00:00
2024-11-07 12:35:03 +00:00
# Load Angular CLI autocompletion.
source <(ng completion script)