46 lines
995 B
Bash
46 lines
995 B
Bash
|
|
#plugins
|
|
source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
|
|
source ~/.zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
|
|
|
|
|
setopt autocd
|
|
|
|
#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
|
|
|
|
#LUAROCKS
|
|
eval "$(luarocks path --bin)"
|
|
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
|
|
|
|
#fzf
|
|
# source <(fzf --zsh)
|
|
|
|
#starship
|
|
eval "$(starship init zsh)"
|
|
|
|
#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
|
|
|
|
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
|