dotfiles/zsh/zshrc
2020-02-01 17:58:00 +01:00

23 lines
778 B
Bash

autoload -U compinit && compinit
autoload -U promptinit && promptinit
setopt correct_all
zstyle ':completion:*' menu select
if [[ "$OSTYPE" == (darwin|freebsd)* ]]; then
alias ls='ls -G'
elif [[ "$OSTYPE" == linux* ]]; then
alias ls='ls --color=tty'
fi
alias ll='ls -lh'
source ~/.zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
source ~/.zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source ~/.zsh/themes/powerlevel10k/powerlevel10k.zsh-theme
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
FZF_DEFAULT_COMMAND='git ls-files --cached --others --exclude-standard | fd'
FZF_DEFAULT_OPTS="-e --height 40% --preview='bat --color=always --tabs=2 --style=plain {}'"
[ -e ~/.zshrc.local ] && source ~/.zshrc.local